Hi all:
How to control the visibility of series if the Chart is using SWT instead of Swing? I know there is a mothed called setSeriesVisible() in renderer classes. However, it works for Swing, but not SWT.
Any suggestions are appreciated!!
SWT series visibility
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
The setSeriesVisible flags are read as part of the rendering process, which writes the chart using ANY instance of Graphics2D. Whether the ultimate target is a Swing component (ChartPanel) or a SWT component (the experimental ChartComposite) or a PDF file (e.g. iText's PdfGraphics2D class), it doesn't alter the path through the rendering code. So I don't think this is something that works for Swing and doesn't work for SWT. Perhaps you can post a pair of self-contained demo apps (one for Swing and one for SWT) that proves me wrong.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader

