imaNNeo / imaNNeo/fl_chart

In some cases, line chart cannot draw graph, and whole app will stuck (crash)

Open
#1,403 2 comments 0 reactions 0 assignees View on GitHub
Lack of Information Needs Reproducible Code
Dominant language
Dart
Stars
7.6k
Forks
2k
Avg merge
9d 1h
Merged PRs (30d)
2

Description

**Describe the bug**
LIneChart cannot draw graph, it will crash the app itself, and nothing works after that.

**To Reproduce**
When minY is negative and maxY is 0, the cases can be reproducable. I will attach code screenshot

**Screenshots**
Screenshot 2023-07-31 at 09 08 40

**Versions**
- which version of the Flutter are you using?
Flutter 3.10.5
- which version of the FlChart are you using?
fl_chart: ^0.61.0

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the crash in LineChart with minY negative and maxY set to 0 using Flutter 3.10.5 and fl_chart 0.61.0. Trace the line-chart range and rendering path to identify the failure, then verify that this input draws normally without locking the app and add a regression check if the project has coverage for this path.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.