XChart icon indicating copy to clipboard operation
XChart copied to clipboard

OHLCSeries' volumeData seems to do nothing.

Open HeyBanditoz opened this issue 5 years ago • 2 comments

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: Example I would expect volume data to be rendered inline along the bottom of the graph.

HeyBanditoz avatar Jul 25 '20 19:07 HeyBanditoz

@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.

Mr14huashao avatar Jul 27 '20 02:07 Mr14huashao

I'd like to see that feature too

jobmission avatar Apr 09 '22 16:04 jobmission