You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi guys,
Can the FlLine be kept visible on the Line chart all the time after the first interaction?
Currently, the line disappears after each touch.
In addition is there a way to show x,y cords after touch through callback?
The text was updated successfully, but these errors were encountered:
found a solution by setting up showingIndicators (following line chart #5), setting handleBuiltInTouches: false, and adding the following to touchCallback:
touchCallback: (touchEvent, response) {
if (response == null || response.lineBarSpots == null) {
return;
}
if (touchEvent is FlTapDownEvent ||
touchEvent is FlPanUpdateEvent) {
final spotIndex = response.lineBarSpots!.first.spotIndex;
setState(() {
showingTooltipOnSpots.clear();
showingTooltipOnSpots.add(spotIndex);
});
}
},
Hi guys,
Can the FlLine be kept visible on the Line chart all the time after the first interaction?
Currently, the line disappears after each touch.
In addition is there a way to show x,y cords after touch through callback?
The text was updated successfully, but these errors were encountered: