Platform: Flutter Desktop
(a) I have a sfCartesian Chart with X axis as DateTime.
(b) I want to display a vertical line that follows the user cursor as he move about int the chart.
(c) I want to line not to 'stick' to existing data points but free moving.
(d) Can it also display the current DateTime too?
Thanks and hope to hear from you soon.
|
crosshairBehavior: CrosshairBehavior (
enable: true,
lineType: CrosshairLineType.vertical),
// If you want to hide the axis tooltip for the crosshair, disable the tooltip with below code in the respective axis
primaryYAxis: NumericAxis(
interactiveTooltip:
const InteractiveTooltip(enable: false)),
|
I can't get crosshair to show at all. Even though I set trackBallBehaviour as null.
Is it dependent on other parameters like zoomPanBehaviour, toolTipBehaviour, etc?
|
crosshairBehavior: CrosshairBehavior(
enable: true,
lineType: CrosshairLineType.vertical,
activationMode: ActivationMode.singleTap), |
It works now for CrosshairBehavior. Thanks.
But SelectionZooming is not working. Any tips?