imaNNeo / imaNNeo/fl_chart

PieChart: touched section index is incorrect if some values are zero

Open
#1,632 2 comments 0 reactions 0 assignees View on GitHub
bug Pie Chart
Dominant language
Dart
Stars
7.6k
Forks
2k
Avg merge
9d 1h
Merged PRs (30d)
2

Description

PieChart: touched section index is incorrect if some values are zero. For example,

` values: 0, 0, 100, 200, 300.`

when touching the 3rd value 100, touched index is 0 that should be 2.

Contributor guide

Open the contributing guide

Research direction

Start at the PieChart touch-handling entry point and reproduce the issue with values 0, 0, 100, 200, 300. Trace how the touched section is mapped to the input values, then verify that touching 100 reports index 2 rather than 0. Add or update regression coverage if the project provides a relevant test location.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.