imaNNeo / imaNNeo/fl_chart

Tooltip to always display at top of graph / ability to round corners for ALL rod items

Open
#1,157 2 comments 1 reaction 0 assignees View on GitHub
Bar Chart enhancement
Dominant language
Dart
Stars
7.6k
Forks
2k
Avg merge
9d 1h
Merged PRs (30d)
2

Description

Currently we use `BarChartRodData` with a height of `maxY` and color invisible, and then we add a single `BarChartRodStackItem` with the actual Y value and color. This forces our tooltip to display on top of the graph.

HOWEVER - we want rounded corners on our stack item, but because its y != the bar y, the painter doesn't round the top corners

so either we need to be able to force the tooltip to display outside the graph (then we won't need the stack items) or we need to be able to apply rounding to individual stack items

Contributor guide

Open the contributing guide

Research direction

Start by tracing BarChartRodData and BarChartRodStackItem through the bar painter and tooltip positioning behavior. Compare the two requested approaches: allowing tooltips outside the graph or supporting rounded corners on individual stack items. Done means the selected behavior works for stacked bars without relying on an invisible full-height rod.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter
Domain
data-visualization
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 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.