JFreeChart LineGraph Grouping values and coloring axis

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
vikram0123
Posts: 1
Joined: Tue Mar 06, 2012 6:08 pm
antibot: No, of course not.

JFreeChart LineGraph Grouping values and coloring axis

Post by vikram0123 » Fri Mar 09, 2012 12:07 am

I'm having trouble grouping x axis values together, I'm currently creating a line graph that measures int values on the Y-axis and time on the X-axis(eg.11:43) the graph will update every second because I need the information to be up-to date and live, now I have the graph running but the values tend to go from 11:43 to 11:... as the size of the line increases, I have set a size on the frame because I have several graphs on one screen is there anyway to group the Time values (x axis) such that say we start at 12:00 after 1 hour groups the values and recursively continues to do so for everyhour e.g.

12:01 12:02 12:03...12:59

then at 13:00 groups the values so now that 13:00 appears at the left most corner of the graph

13:00 13:02...13:59

any guidance to this problem and any exisitng threads on this topic will be much appreciated

Also I want to color the X/Y axis measurement values if by any chance it can be done Thank you

Locked