flutter-charts
flutter-charts copied to clipboard
Incorrect Offset calculation in TargetLineDecoration
When we setting ChartData. axisMin
the Offset in TargetLineDecoration.applyPaintTransform
calculates wrongly.
The problem is in:
Offset(state.defaultPadding.left + state.defaultMargin.left, _height - (state.defaultMargin.bottom + state.defaultPadding.bottom) - (scale * (target ?? 0.0) + _minValue);
instead of adding _minValue
we should subtract it from scale * (target ?? 0.0)