Hide x-axis if no data

Open
#773 1 comment 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
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
java

Research direction

Start by reproducing the time-series market-data chart described in the issue and inspect the x-axis handling, including the older setXAxisLabelOverrideMap API and the related #611 discussion. Done means holidays or dates without corresponding data no longer create a visible time gap or x-axis labels.

Written by the indexing model from the issue text.

Description

Improvement

Hello,

I attempted to plot timeseries market data using this awesome library. However, I couldn't find a way to remove holidays or the x-axis labels for dates with no corresponding data. I tried adding multiple series as suggested in this #611 issue, but it didn't seem to work.

As you can see the chart still display a time gap.

Screenshot 2023-06-28 183847

I also attempted to rollback to the older version that had the chart.setXAxisLabelOverrideMap(xMarkMap) API, but unfortunately, it didn't work either.

Any suggestions would be greatly appreciated.

Thanks!

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.