decimalPlaces property
Rounding decimal places of the selection zooming tooltip or trackball tooltip label.
Defaults to 3
.
late ZoomPanBehavior zoomPanBehavior;
void initState() {
zoomPanBehavior = ZoomPanBehavior(
enableSelectionZooming: true,
);
super.initState();
}
Widget build(BuildContext context) {
return SfCartesianChart(
zoomPanBehavior: zoomPanBehavior,
primaryXAxis: NumericAxis(
interactiveTooltip: InteractiveTooltip(
decimalPlaces: 4
)
),
);
}
Implementation
final int decimalPlaces;