We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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; } } );
The text was updated successfully, but these errors were encountered:
Maybe you can get your specific item with touchedSpot.barIndex and touchedSpot.spotIndex.
touchedSpot.barIndex
touchedSpot.spotIndex
Sorry, something went wrong.
No branches or pull requests
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;
}
}
);
The text was updated successfully, but these errors were encountered: