updateTo method

void updateTo(
  1. ChartLabeledData given
)

Implementation

void updateTo(ChartLabeledData given) {
  final double oldValue = value;
  final double newValue = given.value;
  data = given;

  assert(animation.transitionDuration != null);
  assert(animation.transitionCurve != null);
  animateTo("transition", oldValue, newValue, animation.transitionDuration!, animation.transitionCurve!);
}