Draw some Series as just lines and some as symbols in XYPlot
Draw some Series as just lines and some as symbols in XYPlot
Is there a was to plot some series as just a lines (no symbols) and other series as just symbols (no lines joining the symbols) in the same dataset?
Why doesn't the following the code fall inside the loop?
XYItemRenderer r = plot.getRenderer();
if (r instanceof XYLineAndShapeRenderer) {
XYLineAndShapeRenderer renderer = (XYLineAndShapeRenderer) r;
It works if I replace XYLineAndShapeRenderer with StandardXYItemRenderer (as in the developers guide), but they both implement XYItemRenderer, so I don't see what the difference is.
Any help would be greatly appreciated.
XYItemRenderer r = plot.getRenderer();
if (r instanceof XYLineAndShapeRenderer) {
XYLineAndShapeRenderer renderer = (XYLineAndShapeRenderer) r;
It works if I replace XYLineAndShapeRenderer with StandardXYItemRenderer (as in the developers guide), but they both implement XYItemRenderer, so I don't see what the difference is.
Any help would be greatly appreciated.