BoxAndWhisker and TimerSeriesCollection
BoxAndWhisker and TimerSeriesCollection
Is it possible to combined a XYDataset timeseries collection with a BoxAndWhiskerXYDataset into a single subplot?
Re: BoxAndWhisker and TimerSeriesCollection
just figured it out.
// add secondary axis
subplot1.setDataset(1, createDataset2());
final NumberAxis axis2 = new NumberAxis("Range Axis 2");
axis2.setAutoRangeIncludesZero(false);
subplot1.setRangeAxis(1, axis2);
subplot1.setRangeAxisLocation(1, AxisLocation.BOTTOM_OR_RIGHT);
subplot1.setRenderer(1, new XYBoxAndWhiskerRenderer());
subplot1.mapDatasetToRangeAxis(1, 1);
// add secondary axis
subplot1.setDataset(1, createDataset2());
final NumberAxis axis2 = new NumberAxis("Range Axis 2");
axis2.setAutoRangeIncludesZero(false);
subplot1.setRangeAxis(1, axis2);
subplot1.setRangeAxisLocation(1, AxisLocation.BOTTOM_OR_RIGHT);
subplot1.setRenderer(1, new XYBoxAndWhiskerRenderer());
subplot1.mapDatasetToRangeAxis(1, 1);
-
- JFreeChart Project Leader
- Posts: 11734
- Joined: Fri Mar 14, 2003 10:29 am
- antibot: No, of course not.
- Contact:
Re: BoxAndWhisker and TimerSeriesCollection
Glad you found the answer.
David Gilbert
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program
JFreeChart Project Leader
Read my blog
Support JFree via the Github sponsorship program