ChartCanvas constructor

const ChartCanvas({
  1. Key? key,
  2. required ChartRenderer renderer,
  3. bool animate = true,
  4. Duration duration = const Duration(milliseconds: 1000),
  5. int replay = 0,
})

Creates a canvas hosting renderer, optionally tracing it in with the reveal animation (animate) over duration.

Implementation

const ChartCanvas({
  super.key,
  required this.renderer,
  this.animate = true,
  this.duration = const Duration(milliseconds: 1000),
  this.replay = 0,
});