XyChart constructor

const XyChart({
  1. Input<ChartOptions>? chartOptions,
  2. required Input<List<DataSet>> dataSets,
  3. Input<List<Threshold>>? thresholds,
  4. Input<String>? timeshiftDuration,
  5. Input<Axis>? xAxis,
  6. Input<Axis>? y2Axis,
  7. Input<Axis>? yAxis,
})

Creates a new XyChart. chartOptions Display options for the chart. dataSets The data displayed in this chart. thresholds Threshold lines drawn horizontally across the chart. timeshiftDuration The duration used to display a comparison chart. A comparison chart simultaneously shows values from two similar-length time periods (e.g., week-over-week metrics). The duration must be positive, and it can only be applied to charts with data sets of LINE plot type. xAxis The properties applied to the x-axis. y2Axis The properties applied to the y2-axis. yAxis The properties applied to the y-axis.

Implementation

const XyChart({
  this.chartOptions,
  required this.dataSets,
  this.thresholds,
  this.timeshiftDuration,
  this.xAxis,
  this.y2Axis,
  this.yAxis,
});