Connecting Tech Pros Worldwide Help | Site Map

advanced line graph

 
LinkBack Thread Tools Search this Thread
  #1  
Old December 8th, 2007, 10:15 AM
riklaunim@gmail.com
Guest
 
Posts: n/a
Default 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?

  #2  
Old December 8th, 2007, 10:55 AM
Erwin Moller
Guest
 
Posts: n/a
Default Re: advanced line graph

riklaunim@gmail.com wrote:
Quote:
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
  #3  
Old December 8th, 2007, 02:15 PM
riklaunim@gmail.com
Guest
 
Posts: n/a
Default Re: advanced line graph

then I'll check matplotlib as server side is Python :)
  #4  
Old December 8th, 2007, 03:05 PM
Erwin Moller
Guest
 
Posts: n/a
Default Re: advanced line graph

riklaunim@gmail.com wrote:
Quote:
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
  #5  
Old December 8th, 2007, 07:05 PM
Evertjan.
Guest
 
Posts: n/a
Default Re: advanced line graph

Erwin Moller wrote on 08 dec 2007 in comp.lang.javascript:
Quote:
riklaunim@gmail.com wrote:
Quote:
>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)
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.