TimeSeriesChart constructor

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

Create a TimeSeriesChart.

dateTimeFactory allows specifying a factory that creates DateTime to be used for the time axis. If none specified, local date time is used.

Implementation

TimeSeriesChart(
  List<common.Series<dynamic, DateTime>> seriesList, {
  bool? animate,
  Duration? animationDuration,
  common.AxisSpec? domainAxis,
  common.NumericAxisSpec? primaryMeasureAxis,
  common.NumericAxisSpec? secondaryMeasureAxis,
  LinkedHashMap<String, common.NumericAxisSpec>? disjointMeasureAxes,
  common.SeriesRendererConfig<DateTime>? defaultRenderer,
  List<common.SeriesRendererConfig<DateTime>>? customSeriesRenderers,
  List<ChartBehavior<DateTime>>? behaviors,
  List<SelectionModelConfig<DateTime>>? selectionModels,
  LayoutConfig? layoutConfig,
  this.dateTimeFactory,
  bool defaultInteractions = true,
  bool? flipVerticalAxis,
  UserManagedState<DateTime>? userManagedState,
}) : super(
        seriesList,
        animate: animate,
        animationDuration: animationDuration,
        domainAxis: domainAxis,
        primaryMeasureAxis: primaryMeasureAxis,
        secondaryMeasureAxis: secondaryMeasureAxis,
        disjointMeasureAxes: disjointMeasureAxes,
        defaultRenderer: defaultRenderer,
        customSeriesRenderers: customSeriesRenderers,
        behaviors: behaviors,
        selectionModels: selectionModels,
        layoutConfig: layoutConfig,
        defaultInteractions: defaultInteractions,
        flipVerticalAxis: flipVerticalAxis,
        userManagedState: userManagedState,
      );