ChartsOrg / Charts

Beautiful charts for iOS/tvOS/OSX! The Apple side of the crossplatform MPAndroidChart.
Apache License 2.0
27.43k stars 5.97k forks source link

Incorrect scale of candlestick chart #5172

Open herman-creator opened 2 months ago

herman-creator commented 2 months ago

[x] I've read, understood, and done my best to follow the *CONTRIBUTING guidelines.

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

ClassCandleChartDataSet and method calcMinMaxY has error, after [commit](https://github.com/ChartsOrg/Charts/commit/d2bf08fdd6841d549a6579635ec797185c087635#diff-df086c25af6cd894be60008cda0440ca052f029dfba15b34a3a0974aa5968c2e

Screenshot 2024-05-05 at 15 00 04

)