XyChartResponse constructor

const XyChartResponse({
  1. required Input<ChartOptionsResponse> chartOptions,
  2. required Input<List<DataSetResponse>> dataSets,
  3. required Input<List<ThresholdResponse>> thresholds,
  4. required Input<String> timeshiftDuration,
  5. required Input<AxisResponse> xAxis,
  6. required Input<AxisResponse> y2Axis,
  7. required Input<AxisResponse> yAxis,
})

Creates a new XyChartResponse. 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 XyChartResponse({
  required this.chartOptions,
  required this.dataSets,
  required this.thresholds,
  required this.timeshiftDuration,
  required this.xAxis,
  required this.y2Axis,
  required this.yAxis,
});