Hi all,
Is there a way to display a dot on TimeSeriesChart when there is only data for only one month. For all others, I have
XYLineAndShapeRenderer renderer = (XYLineAndShapeRenderer) r;
renderer.setBaseShapesVisible(false);
renderer.setBaseShapesFilled(false);
Is there any way by which I can find out the count of the months along the X-axis..so that i can do...
if (count == 1) then setBaseShapesVistible(true)
Goal : In general in my trend chart, shapes should not be visible.But if there is only month, it should display a dot.
Any way to do it ?
Thanks in advance.
-Suman
Display dot on TimeSeriesChart when only one month exists ?
-
- Posts: 19
- Joined: Mon Mar 27, 2006 5:19 am
How about
Code: Select all
if (dataset.getItemCount(0) == 1)
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
This would be a nice special case option to add to the XYLineAndShapeRenderer, I think.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader

