Skip to content

Add custom extra dynamic data for FlSpot #1860

@kylechandev

Description

@kylechandev

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;
}
}
);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions