ChartsOrg / ChartsOrg/Charts

Inverted y-axis Area chart

Open
#4,681 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
28k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

> ℹ Please fill out this template when filing an issue.
> All lines beginning with an ℹ symbol instruct you with what info we expect. You can delete those lines once you've filled in the info.
>
> Per our [*CONTRIBUTING guidelines](https://github.com/jjatie/Charts/blob/master/CONTRIBUTING.md), we use GitHub for
> bugs and feature requests, not general support. Other issues should be opened on Stack Overflow with the tag [`ios-charts`.](https://stackoverflow.com/questions/tagged/ios-charts)
>
> Please remove this line and everything above it before submitting.

* [ ] I've read, understood, and done my best to follow the [*CONTRIBUTING guidelines](https://github.com/jjatie/Charts/blob/master/CONTRIBUTING.md).

## What did you do?

ℹ Please replace this with what you did.
![image](https://user-images.githubusercontent.com/10040900/125255342-e6ca8e80-e32d-11eb-9e88-ebffc326468e.png)

## What did you expect to happen?

ℹ Please replace this with what you expected to happen.

I want to complete a chart like this, where the upper y-axis on the left is 0 and the lower is 100. I tried to set leftAxis.inverted to true.
But I got the picture below. What I want is that after the y-axis is reversed, the lower part is still colored.
![image](https://user-images.githubusercontent.com/10040900/125255617-35782880-e32e-11eb-826f-d30de56e9b7a.png)
How should I set it up
## What happened instead?

ℹ Please replace this with of what happened instead.

## Charts Environment

**Charts version/Branch/Commit Number:**
**Xcode version:**
**Swift version:**
**Platform(s) running Charts:**
**macOS version running Xcode:**

## Demo Project

ℹ Please link to or upload a project we can download that reproduces the issue.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the Area chart shown in the issue with leftAxis.inverted set to true, using the attached images as the expected and actual behavior. Trace how axis inversion affects the area fill, then verify that the lower portion remains colored after inversion; the issue provides no file, test, version, or demo-project entry point.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
data-visualization, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.