crosshairLabelColor property

Color crosshairLabelColor
final

Specifies the color of the crosshair text.

Widget build(BuildContext context) {
  return Scaffold(
    body: Center(
      child: SfTheme(
        data: SfThemeData(
          chartThemeData: SfChartThemeData(
            crosshairLabelColor: Colors.yellow
          )
        ),
        child: SfCartesianChart(
          crosshairBehavior: CrosshairBehavior(enable: true),
          primaryXAxis: NumericAxis(),
          series: <ChartSeries<Sample,num>>[
            LineSeries(
              dataSource: chartData,
              xValueMapper: (Sample data, _) => data.x,
              yValueMapper: (Sample data, _) => data.y
            )
          ],
        )
      ),
    )
  );
}

Implementation

final Color crosshairLabelColor;