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.
1 parent e175c7f commit fc5584fCopy full SHA for fc5584f
packages/flet/lib/src/controls/linechart.dart
@@ -356,7 +356,9 @@ 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 ?? dp.y.toString();
+ var tooltip = dp.tooltip != null
360
+ ? jsonDecode(dp.tooltip!)
361
+ : dp.y.toString();
362
var tooltipStyle = parseTextStyle(
363
Theme.of(context), dp.control, "tooltipStyle");
364
tooltipStyle ??= const TextStyle();
0 commit comments