XChart
XChart copied to clipboard
OHLCSeries' volumeData seems to do nothing.
When creating a OHLC chart with volume data like below, it doesn't seem to display volumes at all. candles.getVolumes() contains data.
OHLCChart chart = new OHLCChartBuilder().width(2000).height(750).title(cp.getName()).build();
chart.addSeries("Series", candles.getAsDates(), candles.getOpens(), candles.getHighs(), candles.getLows(), candles.getCloses(), candles.getVolumes())
.setUpColor(Color.GREEN)
.setDownColor(Color.RED);
BufferedImage bi = BitmapEncoder.getBufferedImage(chart);
// ..more
Example:
I would expect volume data to be rendered inline along the bottom of the graph.
@HeyBanditoz volumes does not draw the bar chart at the bottom.
You can set chart.getStyler().setToolTipsEnabled(true). If you hover over the candle, the volume will be displayed.
I'd like to see that feature too