ChartsOrg / ChartsOrg/Charts

Line chart - Right axis with max/min causes render issues

Open
#4,568 1 comment 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.

* [x] 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?

ℹ Set a maximum and minimum value when using a line graph with the right axis (left axis was disabled)

## What did you expect to happen?

ℹ Build a line graph where the points match the axis labels.

## What happened instead?

ℹ The points do not match the axis labels. Works with the left axis. Produces incorrect graph with the right axis.

## Charts Environment

**Charts version/Branch/Commit Number: 3.6.0**
**Xcode version: 12.4**
**Swift version: 5**
**Platform(s) running Charts: iOS**
**macOS version running Xcode: 11.1**

## Demo Project
[ChartBugDemo.zip](https://github.com/danielgindi/Charts/files/5881972/ChartBugDemo.zip)

## Screenshot of the problem
![bug](https://user-images.githubusercontent.com/5704178/106029693-40633780-60c5-11eb-965d-b2e51e601143.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.