imaNNeo/fl_chart

Setting minY for Line Chart Causes Rendering outside of Container

開放

#870 建立於 2022年1月6日

 (6 則留言) (4 個反應) (0 位負責人)Dart (1,964 個分叉)batch import
Line Chartenhancementgood first issue

倉庫指標

星標
 (7,513 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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

貢獻者指南