469,578 Members | 1,775 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,578 developers. It's quick & easy.

advanced line graph

I have to make a line graph of entries from last 30 days. I have the
graph but I can't make it look nice - the X line has the day of month
numbers like 29, 30, 1, 2, 3... But I want to group them by month:

....29,30 | 1, 2, 3
Oct | Dec

Is there somewhere a library somewhere that can makes such graphs?
Dec 8 '07 #1
4 1513
ri*******@gmail.com wrote:
I have to make a line graph of entries from last 30 days. I have the
graph but I can't make it look nice - the X line has the day of month
numbers like 29, 30, 1, 2, 3... But I want to group them by month:

...29,30 | 1, 2, 3
Oct | Dec

Is there somewhere a library somewhere that can makes such graphs?
Hi,

Javascript is not really suited to make graphs.
It can be done, but you need lots of positioned divs containing an image
or background color, which is heavy on the client, and takes a lot of
work to make them look nice.

I would advise you to go serverside and use a serverside language that
can make images.
In most serverside languages I have used it is not really difficult, eg
in PHP.
And also lots of good free libs around (eg JPGraph in PHP,
http://www.aditus.nu/jpgraph/).
What you want to do is a breeze in JPgraph, and the images are
autoscaled if you want and always look good, have optinal legendas,
scales, etc.

Regards,
Erwin Moller
Dec 8 '07 #2
then I'll check matplotlib as server side is Python :)
Dec 8 '07 #3
ri*******@gmail.com wrote:
then I'll check matplotlib as server side is Python :)
Hi,

I just checked:
http://matplotlib.sourceforge.net/

and is surely looks like a great lib.
But since I don't do Python (yet), I can only look at the nice pictures
they present. ;-)

Good luck and have fun.

Regards,
Erwin Moller
Dec 8 '07 #4
Erwin Moller wrote on 08 dec 2007 in comp.lang.javascript:
ri*******@gmail.com wrote:
>I have to make a line graph of entries from last 30 days. I have the
graph but I can't make it look nice - the X line has the day of month
numbers like 29, 30, 1, 2, 3... But I want to group them by month:

...29,30 | 1, 2, 3
Oct | Dec

Is there somewhere a library somewhere that can makes such graphs?

Hi,

Javascript is not really suited to make graphs.
It can be done, but you need lots of positioned divs containing an image
or background color, which is heavy on the client, and takes a lot of
work to make them look nice.
However it is possible:

<http://devrijehuisarts.org/test/jsgraph.asp>

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Dec 8 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Lisa Tracy | last post: by
7 posts views Thread by news | last post: by
3 posts views Thread by Bob Greschke | last post: by
1 post views Thread by Sharon | last post: by
2 posts views Thread by balakrishnan.dinesh | last post: by
3 posts views Thread by goldreads | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.