imaNNeo / imaNNeo/fl_chart

Miss touched section in Pie chart

Open
#1,505 0 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

**Describe the bug**
When I use the pie chart with some large centerSpaceRadius and try to hover on a section, the calculation tells that the hover is not on the section but actually it’s. This causes the tooltip to show incorrect information and the section to not highlight properly.

**To Reproduce**
Edit the pie chart sample 1
sectionsSpace = 30
and the sections radius = 150

**Screenshots**
https://github.com/imaNNeo/fl_chart/assets/18621699/ddba5c6d-b302-49d1-a40d-8868804e2771

**Versions**
Flutter version: 3.13.9
FlChart version: 0.64.0

Contributor guide

Open the contributing guide

Research direction

Start with pie chart sample 1 and reproduce the hover using sectionsSpace = 30 and sections radius = 150 on the reported Flutter and fl_chart versions. Trace the hover calculation for a large centerSpaceRadius, then verify that the affected section highlights and the tooltip reports the correct information.

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.