By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,136 Members | 1,087 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,136 IT Pros & Developers. It's quick & easy.

Language for Online Graphing

P: n/a
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
Share this Question
Share on Google+
6 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.