Hi,
I have used the XYPlot to plot a StackedXYBarRenderer and I observed that the tick marks were visible even when there is no data. I would like to have the tick marks visible on X-axis only when there is data. How to achieve this.
I know this sounds simple but, I need to know to which flag of a method should I set this option.
Thanks,
Laks.
Do not show the tick mark when no data
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
You can hide the tick marks as the previous poster suggested, but there isn't a way to make this happen automatically just when there is no data.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader


-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
You could subclass the axis and override refreshTicks().
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader

