Y Axis labels showing when dataset is empty

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
ajanitin
Posts: 7
Joined: Wed Dec 03, 2008 12:30 pm
Location: Pune, India

Y Axis labels showing when dataset is empty

Post by ajanitin » Mon Jan 19, 2009 11:53 am

Hi,

I am using timeseries chart. My problem is when there is no data available for the chart i.e. the data set is empty then the graph is diaplyaed with no data message. But the Y axis labels are displayed like 0.0, 0.5, 1.0, 1.5,... . How can i prevent Y axis labels from appearing on the chart.

Thanks

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 Jan 20, 2009 10:05 am

I don't think there is a way to do this without modifying JFreeChart in some way. Probably the easiest thing to do would be to override refreshTicks() in the axis, and return an empty list if the plot has no data.
David Gilbert
JFreeChart Project Leader

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

dharmendra
Posts: 5
Joined: Wed Apr 23, 2008 1:31 pm

regarding jsf version

Post by dharmendra » Fri Jan 30, 2009 8:57 am

Hi david how can i do dual axis chart in jsf:


<c:chart id="chart"
datasource="#{BarCharts.sourceProvider.dataSet}"
type="bar" is3d="true" antialias="true" outline="true"


is it possible to add multiple dataset using jsf

Locked