473,399 Members | 4,254 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Language for Online Graphing

Hello, all.

I am considering writing an online graphing utility. I plan it to be
of good quality, such that an undergraduate university student can
print it out and include it with a lab report.
Data points will be entered, having been generated by another program;
the utility will NOT accept functions for plotting--just the data
points.

As far as I know, Javascript does not provide graphing functionality.
Could somebody in this group please let me know what the best language
to use for writing this utility.

Thanks a lot.

Michael
Jul 20 '05 #1
6 1580
Michael Hill wrote:
Hello, all.

I am considering writing an online graphing utility. I plan it to be
of good quality, such that an undergraduate university student can
print it out and include it with a lab report.
Data points will be entered, having been generated by another program;
the utility will NOT accept functions for plotting--just the data
points.

As far as I know, Javascript does not provide graphing functionality.
Could somebody in this group please let me know what the best language
to use for writing this utility.


If all you are wanting to do is to graph points, that can be easily done
with javascript. Two ways.

Method 1:

Create a grid that is x by y pixels, with each pixel being a div tag
with its background color set, with overflow: hidden; set on it. Then,
loop through the data points, find its corresponding div tag, and change
its background color.

It is the underlying method of this page:
<URL: http://www.hikksworld.com/graphIt/index.html />
Simply click on two points in the blue, it will draw a red line between
them. Yours would be a lot simpler, because that one determines each
point between the two clicked points, and moves a red image down instead
of changing the background color.

Later tonight, I will work on changing that one to use divs instead of
the image that it uses now.

Method 2:

Accept all the points. Then dynamically create the page, with div tags
(or a table) with background colors accordingly. This might actually be
the simplest method.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/

Jul 20 '05 #2
Randy Webb wrote:
Michael Hill wrote:
Hello, all.

I am considering writing an online graphing utility. I plan it to be
of good quality, such that an undergraduate university student can
print it out and include it with a lab report.
Data points will be entered, having been generated by another program;
the utility will NOT accept functions for plotting--just the data
points.

As far as I know, Javascript does not provide graphing functionality.
Could somebody in this group please let me know what the best language
to use for writing this utility.


If all you are wanting to do is to graph points, that can be easily done
with javascript. Two ways.

Method 1:

Create a grid that is x by y pixels, with each pixel being a div tag
with its background color set, with overflow: hidden; set on it. Then,
loop through the data points, find its corresponding div tag, and change
its background color.

It is the underlying method of this page:
<URL: http://www.hikksworld.com/graphIt/index.html />
Simply click on two points in the blue, it will draw a red line between
them. Yours would be a lot simpler, because that one determines each
point between the two clicked points, and moves a red image down instead
of changing the background color.

Later tonight, I will work on changing that one to use divs instead of
the image that it uses now.


EEeeeeeek. I will even make it work in something besides IE :-O
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/

Jul 20 '05 #3
In article <71**************************@posting.google.com >, mhill37
@netzero.net enlightened us with...

As far as I know, Javascript does not provide graphing functionality.
Could somebody in this group please let me know what the best language
to use for writing this utility.


If you can't get what you need from Randy's solution, java applets can
do this.
Ask for help with that in comp.lang.java*

--
--
~kaeli~
I do whatever my Rice Krispies tell me to.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 20 '05 #4
mh*****@netzero.net (Michael Hill) wrote in message news:<71**************************@posting.google. com>...
Hello, all.

I am considering writing an online graphing utility. I plan it to be
of good quality, such that an undergraduate university student can
print it out and include it with a lab report.
Data points will be entered, having been generated by another program;
the utility will NOT accept functions for plotting--just the data
points


I used the drag &drop library from this site and found it to be very
easy and well documented. For the application that you described, this may
be a reasonable solution.

http://www.walterzorn.com/jsgraphics/jsgraphics_e.htm
Jul 20 '05 #5
Ike
Do this in php. THere are tons of publibly available scripts out there to do
anything you want in this regard. Additionally, as for printing and such, it
is all handled by your browser (pagination, etc.). -Ike

"Michael Hill" <mh*****@netzero.net> wrote in message
news:71**************************@posting.google.c om...
Hello, all.

I am considering writing an online graphing utility. I plan it to be
of good quality, such that an undergraduate university student can
print it out and include it with a lab report.
Data points will be entered, having been generated by another program;
the utility will NOT accept functions for plotting--just the data
points.

As far as I know, Javascript does not provide graphing functionality.
Could somebody in this group please let me know what the best language
to use for writing this utility.

Thanks a lot.

Michael

Jul 20 '05 #6
Ike wrote:
Do this in php. THere are tons of publibly available scripts out there to do
anything you want in this regard. Additionally, as for printing and such, it
is all handled by your browser (pagination, etc.). -Ike


This, of course, assumes that you *can* do this in PHP. Not everyone
has access to PHP on their server, and most developers have no control
over the support on their server.

It also assumes the technical know-how to do server-side scripting, and
the familiarity with PHP to know how to include dynamicly created
images... I suppose it also assumes that the PHP installation has the
required capabilities, like the image creation extensions.

Lots of assumptions here. Also, please do not top-post.

Brian

Jul 20 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Michael T. Peterson | last post by:
Would anyone care to recommend a good graphing package (commercial or otherwise)? I've looked at some of the PEAR Image packages - The only graphing package is still alpha quality. One...
4
by: FGO | last post by:
Hi all, I use jpgraph as a graphing tool and it is very slow. Is there a solution to tune it or will I have to use another graphing solution, and which one? (My graphs are simple line stocks...
22
by: Kenneth Miller | last post by:
Hello All, I am new to Python and i was wondering what graphing utlities would be available to me. I have already tried BLT and after weeks of unsuccesful installs i'd like to find something...
9
by: bluedolphin | last post by:
Hello All: I have been brought onboard to help on a project that had some performance problems last year. I have taken some steps to address the issues in question, but a huge question mark...
1
by: Mudcat | last post by:
Hi, I have looked through the previous suggestions on graphing modules and have been able to find some good suggestions. However I was wondering about something more specific. I am going to...
1
by: robby.walker | last post by:
Hi, I've just released a full-featured online graphing calculator at http://www.e-tutor.com/et2/graphing/ It requires no downloads or plugins - just JavaScript. You can track points on the...
2
by: sydneytroz | last post by:
I am writing a program to simulate a double displacement reaction getting to equilibrium, but I am having some trouble graphing the particles' concentrations. It seems that it's only possible to pan...
0
by: DexterOnline | last post by:
GraphEasy series of popular online applets are now print enabled. This allows you to graph your popular functions and print them online. The following three applets allow viewing and printing...
1
by: skeates | last post by:
Hey all - I'm attempting to write a program that accesses a database, runs some calculations according to user input, and then creates some graphs from the results. The first two steps were pretty...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.