ChartsOrg / ChartsOrg/Charts

Bar Chart Left-Axis Alignment doesn't match with data

Open
#4,311 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

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

**Scenario #1**
Screen Shot 2020-03-16 at 1 48 25 PM

![IMG_0407A1F2A91C-1](https://user-images.githubusercontent.com/10794609/76798777-73daf300-678d-11ea-80d5-75c4f0fafdda.jpeg)

**Scenario #2**
Screen Shot 2020-03-16 at 1 46 46 PM

![IMG_D6F4270F6D61-1](https://user-images.githubusercontent.com/10794609/76798785-78071080-678d-11ea-8b42-0c99a0b835ce.jpeg)

## What did you expect to happen?

Scenario #1 first bar should end right at the 10.0 axis.

## What happened instead?

Instead it looks like the bar value is 9.0.

## Charts Environment

**Charts version/Branch/Commit Number: 3.0.4**
**Xcode version: Xcode 11.4 Beta**
**Swift version: 5.1**
**Platform(s) running Charts: iOS 13.3**
**macOS version running Xcode: N/A**

## Demo Project

Coded included above

Contributor guide

Open the contributing guide

Research direction

Start by reproducing both scenarios from the screenshots and the included demo project on the reported Charts 3.0.4, Swift 5.1, and iOS 13.3 setup. Trace the bar-chart rendering and left-axis scale entry points to compare the displayed bar end with the 10.0 axis value. Done means the first bar aligns with the expected axis value in both scenarios without regressing other charts.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
data-visualization, mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.