ChartsOrg / ChartsOrg/Charts

CandleStickChart auto scaling min/max is not working correctly

Open
#5,155 0 comments 1 reaction 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?

CandleStickChart auto scaling min/max is not working correctly.

## What did you expect to happen?

If `isAutoScalingMinMaxEnabled` was `true`, we can see entire values from min `shadowL` to max `shadowH` of visible entries.

## What happened instead?

We can only some part of values.

![Simulator Screenshot - iPhone 15 Pro - 2024-03-13 at 22 30 57](https://github.com/danielgindi/Charts/assets/1577019/e345789b-546c-479a-856d-b2b033a271d5)

## DGCharts Environment

**DGCharts version/Branch/Commit Number:**
**Xcode version:** 15.0.1
**Swift version:** 5
**Platform(s) running DGCharts:** iOS
**macOS version running Xcode:** 14.3.1(23D60)

## Demo Project

https://github.com/mithril1992/ChartsBugReproduction

Contributor guide

Open the contributing guide

Research direction

Start with the CandleStickChart auto-scaling behavior and the linked ChartsBugReproduction demo project. Inspect how visible entries determine the shadowL and shadowH range when isAutoScalingMinMaxEnabled is true; done means the full visible range is shown on iOS, from the minimum shadowL to the maximum shadowH.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.