Customize Range Axis - horizontal stacked bar chart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
pradheep
Posts: 15
Joined: Thu Apr 12, 2007 4:47 am
Location: Chennai [INDIA]
Contact:

Customize Range Axis - horizontal stacked bar chart

Post by pradheep » Mon May 14, 2007 12:14 pm

Dear All

My chart is horizontal stacked bar chart. i have timestamp value from the database as my categoryplot and set the value of the chart in DateAxis.
the value is showing 1970 as the default value. how do i sent the auto scalling and the x-axis should plot according to the category set.
--------------------------------
Cheers
PraDz

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Post by david.gilbert » Tue May 15, 2007 10:36 am

If you use a DateAxis for the range axis, then the values in your dataset will be interpreted as "milliseconds since 1-Jan-1970", which probably explains why the DateAxis is displaying 1970. Aside from that, I can't really help unless you provide more specific information.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

pradheep
Posts: 15
Joined: Thu Apr 12, 2007 4:47 am
Location: Chennai [INDIA]
Contact:

Post by pradheep » Tue May 15, 2007 10:47 am

thanks david,

but my timestamp value will be some date [15 May 2007, 11:23:34]. how can give the input to the category dataset as timestamp. how to show the actually date/time in the axis. why not dateAxis work.

pls. help me out in how and wat to use.
--------------------------------
Cheers
PraDz

pradheep
Posts: 15
Joined: Thu Apr 12, 2007 4:47 am
Location: Chennai [INDIA]
Contact:

Post by pradheep » Wed May 23, 2007 12:04 pm

david

am using the method setBase(starttime) and se thte date axis. its perfectly working and thanks
david.gilbert wrote:If you use a DateAxis for the range axis, then the values in your dataset will be interpreted as "milliseconds since 1-Jan-1970", which probably explains why the DateAxis is displaying 1970. Aside from that, I can't really help unless you provide more specific information.
--------------------------------
Cheers
PraDz

Locked