tooltipColor property
Specifies the color of the tooltip.
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: SfTheme(
data: SfThemeData(
chartThemeData: SfChartThemeData(
tooltipColor: Colors.teal
)
),
child: SfCartesianChart(
tooltipBehavior: TooltipBehavior(enable: true),
series: <ChartSeries<Sample,num>>[
LineSeries(
dataSource: chartData,
xValueMapper: (Sample data, _) => data.x,
yValueMapper: (Sample data, _) => data.y
)
],
)
),
)
);
}
Implementation
final Color tooltipColor;