We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
LineChartDataPoint.tooltip
1 parent aeb2399 commit 1222cffCopy full SHA for 1222cff
packages/flet/lib/src/controls/linechart.dart
@@ -356,9 +356,7 @@ class _LineChartControlState extends State<LineChartControl> {
356
return touchedSpots.map((spot) {
357
var dp = viewModel.dataSeries[spot.barIndex]
358
.dataPoints[spot.spotIndex];
359
- var tooltip = dp.tooltip != null
360
- ? jsonDecode(dp.tooltip!)
361
- : dp.y.toString();
+ var tooltip = dp.tooltip ?? dp.y.toString();
362
var tooltipStyle = parseTextStyle(
363
Theme.of(context), dp.control, "tooltipStyle");
364
tooltipStyle ??= const TextStyle();
0 commit comments