animateToX method
Implementation
Future<void> animateToX(
double x, {
required Duration duration,
required Curve curve,
}) {
final ScrollableChartPosition position =
this.position as ScrollableChartPosition;
return position.animateTo(
position.getPixelsFromX(x),
duration: duration,
curve: curve,
);
}