[noob] help with java code

9 views
Skip to first unread message

sky delta

unread,
Oct 25, 2009, 4:09:37 PM10/25/09
to JSFlot JavaServer Faces JSF Chart Library
hi,

i want to draw a graph , and from my bd i brind the data under this
form :

2008-01-28 , 24
2008-02-12 , 6
2008-03-28 , 21
.
.
.
.
.


but the data got drawn after i select 2 value from the calendar ( then
i take those value , and i get the result from the db , this part is
not a problem ), my problem is that i don't know how to put the begin
and the end of this graph of the date than come under this form
(2008-03-28) , because the user can select the date in the year 2007 ,
and the other in the year 2009 , and draw the correspondant graph,

plz anybody to give a help , because i'm really stuck


and thanks

Joachim H. Skeie

unread,
Nov 4, 2009, 1:34:53 AM11/4/09
to JSFlot JavaServer Faces JSF Chart Library
Hello,

You set your datapoints and send them to JSFlot in milliseconds. You
then use the timeFormat to format the values on the X-Axis. The JSFlot
Live Demo shown you how to do this. http://jsflotdemo.haagen.name/
Reply all
Reply to author
Forward
0 new messages