BoxAndWhisker and TimerSeriesCollection

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
bztom333
Posts: 10
Joined: Sat Aug 20, 2016 12:29 am
antibot: No, of course not.

BoxAndWhisker and TimerSeriesCollection

Post by bztom333 » Sat Aug 20, 2016 12:34 am

Is it possible to combined a XYDataset timeseries collection with a BoxAndWhiskerXYDataset into a single subplot?

bztom333
Posts: 10
Joined: Sat Aug 20, 2016 12:29 am
antibot: No, of course not.

Re: BoxAndWhisker and TimerSeriesCollection

Post by bztom333 » Sat Aug 20, 2016 5:12 am

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);

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Re: BoxAndWhisker and TimerSeriesCollection

Post by david.gilbert » Sat Aug 20, 2016 5:35 am

Glad you found the answer.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked