TimeSeriesChart constructor

const TimeSeriesChart(
  1. List<Series<dynamic, DateTime>> seriesList, {
  2. Key? key,
  3. bool? animate,
  4. Duration? animationDuration,
  5. AxisSpec? domainAxis,
  6. NumericAxisSpec? primaryMeasureAxis,
  7. NumericAxisSpec? secondaryMeasureAxis,
  8. LinkedHashMap<String, NumericAxisSpec>? disjointMeasureAxes,
  9. SeriesRendererConfig<DateTime>? defaultRenderer,
  10. List<SeriesRendererConfig<DateTime>>? customSeriesRenderers,
  11. List<ChartBehavior<DateTime>>? behaviors,
  12. List<SelectionModelConfig<DateTime>>? selectionModels,
  13. LayoutConfig? layoutConfig,
  14. DateTimeFactory? dateTimeFactory,
  15. bool defaultInteractions = true,
  16. bool? flipVerticalAxis,
  17. UserManagedState<DateTime>? userManagedState,
})

Creates a time series chart with the given series of data.

seriesList The list of series to be plotted on the chart. animate Whether to animate the chart when data changes. animationDuration The duration of the animation when data changes. domainAxis The domain axis to use for the chart. If not provided, a default DateTimeAxis will be used. primaryMeasureAxis The primary measure axis to use for the chart. If not provided, a default numeric axis will be used. secondaryMeasureAxis The secondary measure axis to use for the chart, if needed. disjointMeasureAxes A map of measure axes for disjoint domains, if needed. defaultRenderer The default renderer to use for the series. If not provided, a default LineRendererConfig will be used. customSeriesRenderers Custom renderers for specific series, if needed. behaviors A list of chart behaviors to attach to the chart. selectionModels A list of selection models to attach to the chart. layoutConfig Configuration for chart layout. dateTimeFactory Factory for creating DateTime instances for the time axis. If not provided, local date time will be used. defaultInteractions Whether to add the default interactions to the chart. flipVerticalAxis Whether to flip the vertical axis of the chart. userManagedState Allows external management of chart state.

Implementation

const TimeSeriesChart(
  super.seriesList, {
  super.key,
  super.animate,
  super.animationDuration,
  super.domainAxis,
  super.primaryMeasureAxis,
  super.secondaryMeasureAxis,
  super.disjointMeasureAxes,
  super.defaultRenderer,
  super.customSeriesRenderers,
  super.behaviors,
  super.selectionModels,
  super.layoutConfig,
  this.dateTimeFactory,
  super.defaultInteractions,
  super.flipVerticalAxis,
  super.userManagedState,
});