XyChart constructor
const
XyChart({})
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,
});