Add custom extra dynamic data for FlSpot
- Dominant language
- Dart
- Stars
- 7.6k
- Forks
- 2k
- Avg merge
- 9d 1h
- Merged PRs (30d)
- 2
Description
Add custom extra dynamic data for FlSpot, then we can easily display the custom information of each data point in LineTouchTooltipData.
For example:
FlSpot(double x, double y, dynamic data);
touchTooltipData: LineTouchTooltipData(
fitInsideHorizontally: true,
fitInsideVertically: true,
getTooltipItems: (List touchedBarSpots) {
return touchedBarSpots.map((touchedSpot) {
dynamic data = touchedSpot.data;
}
}
);
Contributor guide
Research direction
Start by locating FlSpot and LineTouchTooltipData, then trace how a spot becomes a LineBarSpot for tooltip callbacks. Add support for carrying custom per-point data through that path and verify that getTooltipItems can access it as shown in the issue example.
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
- 42/100