help needed in createTimeSeriesChart

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
mramin05
Posts: 6
Joined: Mon Dec 15, 2008 5:52 am

help needed in createTimeSeriesChart

Post by mramin05 » Mon Dec 15, 2008 6:03 am

HI,
In my system I have draw createTimeSeriesChart but the problem is when The size of the grppah reduce to smaller size then the level of X axis is changed. It seems ok with rendam values choosed XYPlot class. But I want to display particular label in the X axis( domain label).
Sush as 9,12,15,18,21 etc. But How can I control this?
Please help me.
Thanks in advance.
Amin

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 » Mon Dec 15, 2008 9:26 am

You can call setTickUnit() on the axis. But if you manually fix the tick unit this way, then when the chart resizes you may get labels overlapping.
David Gilbert
JFreeChart Project Leader

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

mramin05
Posts: 6
Joined: Mon Dec 15, 2008 5:52 am

Post by mramin05 » Tue Dec 16, 2008 4:02 am

You can call setTickUnit() on the axis. But if you manually fix the tick unit this way, then when the chart resizes you may get labels overlapping.
Hi,
Thx for ur reply. Sorry to say that have missed one point that is
in that timeseries chart chart should be generate according to hour.
The chart has MajorTick(Hour.class) and minorTick(Day.class). I want to display the label of the MajorTick as 0 blank blank 3 blank blank 6.... etc. I have change the numberAxis by extending NumberAxis class but failed to customized the domain axis
Please have a look on the pic.This is my desired chart
http : //imageshare.web.id/images/ 811hfjvzjf1l9bbhyykk.jpg
I could not post image as I am new member.

and The bar should be displayed in the interval of the majorTickmark(as the image)
now showing at the position of the majorTickmark.
Please show me the way to do that.
Thanks in advanced

Locked