[Feature request] Allow YAxis to be inverted

Open
#678 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
55/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
java

Research direction

Start by tracing how YAxis settings are exposed in the Java API and how the API docs and demo code represent axis configuration. Identify the existing axis-range or orientation entry point, then verify that an inverted YAxis places the maximum at the bottom and the minimum at the top while preserving chart rendering.

Written by the indexing model from the issue text.

Description

Feature Request

Allow a user to create a chart with the YAxis inverted, i.e. max value at the bottom and min value on top. I use the chart to plot my country's currency (Rand) exchange rate vs. the dollar. If my currency increases in value, the exchange rate decreases, and on a plot it looks like the value decreases.

I have searched the API docs and Demo code and can not find anything like that.

image

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.