Hi All,
I have implemented a bar chart using Jfreechart and in that chart I have 8 bars. most of the time the non zero values come for few bars not for all.
The problem that I have is that the zero values bars are also taking a space in the chart and they do appear in the legend too.
I need to remove or hide the zero valued bars from the chart and legend.
IS THIS possible?
any help or idea that you give in this context would be highly appreciated.
My Jfreechart version is 1.0.10
Barchart - need to hide bars frm chart and legend if value=0
Hi,
Yes I would like to know how to do this too, quite often you need to to add "null" values doing something like
and then it appears in the legend.
is there a quick way to remove these legends?
Yes I would like to know how to do this too, quite often you need to to add "null" values doing something like
Code: Select all
defaultcategorydataset2.addValue(null, className, period);
is there a quick way to remove these legends?