Hi
I am using JFreeChart to plot some graphs fetching the data from database and save the graph as a jpeg using ChartUtilities. I would like to display a message to the users of our application in case there was no data available.
Guess this should be possible using setNoDataMessage. Tried it but it does not seem to work. Checked the code but it seems that the function drawNoDataMessage is not being called from any where..... There is some commented code in PIePlot.java which tries to draw the message....
Would like to know if any one of you is aware if this feature has been intentionally removed, or do i need to do something special to make this work. 1 work around that i could think of was adding an additional title but ideally i would want to fisplay the message in place of the series in the plot.
I am using JFreeChart 0.93, Does the release 0.94 fix this ???
Thanks
Sachin
NoDataMessage
Re: NoDataMessage
Hi Sachin,
I'm sure this was working at some point (for the PiePlot class, at least) but it does not appear to be working now. I've reinstated it for the PiePlot class in CVS now and I will do the same for the 3D pie charts...for other plot types, this will have to go on the to-do list.
Regards,
Dave Gilbert
I'm sure this was working at some point (for the PiePlot class, at least) but it does not appear to be working now. I've reinstated it for the PiePlot class in CVS now and I will do the same for the 3D pie charts...for other plot types, this will have to go on the to-do list.
Regards,
Dave Gilbert
Re: NoDataMessage
Hi
I want to display no data message for XYPlot and HorizontalStacked bar chart.
How do i do that?
Thanks
Nivedeeta
I want to display no data message for XYPlot and HorizontalStacked bar chart.
How do i do that?
Thanks
Nivedeeta
Re: NoDataMessage
Font errorFont = new Font("SansSerif", Font.ITALIC, 12);
chart.addTitle(new TextTitle("No data available!", errorFont, Color.red));
chart.addTitle(new TextTitle("No data available!", errorFont, Color.red));
Re: NoDataMessage
> I want to display no data message for XYPlot and HorizontalStacked bar chart.
> How do i do that?
It's not implemented yet, you would have to modify the XYPlot and CategoryPlot classes. It is on the to-do list.
Regards,
Dave Gilbert
> How do i do that?
It's not implemented yet, you would have to modify the XYPlot and CategoryPlot classes. It is on the to-do list.
Regards,
Dave Gilbert