Skip to content

Set "CandleStickChartView.autoScaleMinMaxEnabled = true" will cause layout errors #5236

Description

@SharonChang0905

DGCharts version: 5.1.0
Xcode version: 16.2
Swift 5.0

The algorithm in the calcMinMaxY(entry:) function of the CandleChartDataSet class is wrong. The content of the function should be changed to

_yMin = Swift.min(e.high, _yMin)
_yMax = Swift.max(e.high, _yMax)

_yMin = Swift.min(e.low, _yMin)
_yMax = Swift.max(e.low, _yMax)

Otherwise, "CandleStickChartView.autoScaleMinMaxEnabled = true" will cause layout errors

This is the best Charts SDK I have ever used.
I hope to receive the good news of the next version with corrections as soon as possible.

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions