ChartsOrg / ChartsOrg/Charts

Incorrect scale of candlestick chart

Open
#5,172 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

[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?
Updated Charts versions and use `autoScaleMinMaxEnabled` flag for candle charts.

## What did you expect to happen?
The graph is increasing as it should.

## What happened instead?
Y coordinates of candles on the chart is not corrects.

## DGCharts Environment
**Charts version: 5.1.0**
**Xcode version: 15.0.1**
**Swift version: 5.0**
**Platform(s) running DGCharts: iOS**
**macOS version running Xcode: Sonoma 14.1 (23B74**

## Demo Project
Unfortunately I can not give access to the project, it is intellectual property.

## Additional
Class`CandleChartDataSet` and method `calcMinMaxY` has error, after [commit](https://github.com/ChartsOrg/Charts/commit/d2bf08fdd6841d549a6579635ec797185c087635#diff-df086c25af6cd894be60008cda0440ca052f029dfba15b34a3a0974aa5968c2e
Screenshot 2024-05-05 at 15 00 04
)

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.