Hi, thanks for jfree chart
but i have some problems about how to mix to graph
i have OHLC Graph and want to add volume line (and ma line too)
which dataset that i should do (TimeSeries or XYSeries)
please give me an example code
thanks.
How can i mix 2 graph (jfree 0.92.21)
Try this!
additionally you can also do a map between dataset and renderer like below.
Code: Select all
plot_.setRenderer(0, rendererA);
plot_.setRenderer(1, rendererB);
plot_.setDataset(0, (XYDataset) datasetA);
plot_.setDataset(1, (XYDataset) datasetB);
Code: Select all
plot_.mapDatasetToDomainAxis(0, 0);
plot_.mapDatasetToDomainAxis(1, 0);
--
RCDran
RCDran