OHLCSeries' volumeData seems to do nothing.

Open
#491 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 4 days

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
38/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
java

Research direction

Start with OHLCChartBuilder and the OHLCChart.addSeries overload that accepts volumes, then trace how the series reaches BitmapEncoder.getBufferedImage(chart). Reproduce the supplied example and inspect the rendered chart; done means the volume data is visibly rendered inline along the bottom of the OHLC graph.

Written by the indexing model from the issue text.

Description

Feature Request

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.

Dominant language
Java
Stars
1.6k
Forks
400
Avg merge
3d 9h
Merged PRs (30d)
7

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from knowm/XChart

All issues in knowm/XChart

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.