Setting minY for Line Chart Causes Rendering outside of Container
- Dominant language
- Dart
- Stars
- 7.6k
- Forks
- 2k
- Avg merge
- 9d 1h
- Merged PRs (30d)
- 2
Description
**Describe the bug**
Structurally, I have a `LineChart` within a `Container` that's used to constrain the chart's dimensions. When supplying a `minY` to `LineChartData`, the chart display extends outside the bounds of the `Container`. Normally, I would expect the chart to scale to the size of the container in all cases.
**To Reproduce**
Code snippet:

The y values supplied range between 35,000 to 65,000
**Screenshots**
Without specifying a `minY`:

Specifying a `minY`:

**Versions**
- which version of the Flutter are you using?
2.5.3
- which version of the FlChart are you using?
0.40.6
Contributor guide
Research direction
Start by reviewing the LineChart and LineChartData rendering behavior when minY is supplied, using the reported Flutter 2.5.3 and FL Chart 0.40.6 setup. Reproduce the chart inside a constrained Container with y values from 35,000 to 65,000; done means the chart remains within the Container bounds with and without minY.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, flutter
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100