LineChart constructor
- List<
Series< seriesList, {dynamic, num> > - Key? key,
- bool? animate,
- Duration? animationDuration,
- AxisSpec? domainAxis,
- NumericAxisSpec? primaryMeasureAxis,
- NumericAxisSpec? secondaryMeasureAxis,
- LinkedHashMap<
String, NumericAxisSpec> ? disjointMeasureAxes, - LineRendererConfig<
num> ? defaultRenderer, - List<
SeriesRendererConfig< ? customSeriesRenderers,num> > - List<
ChartBehavior< ? behaviors,num> > - List<
SelectionModelConfig< ? selectionModels,num> > - RTLSpec? rtlSpec,
- LayoutConfig? layoutConfig,
- bool defaultInteractions = true,
- bool? flipVerticalAxis,
- UserManagedState<
num> ? userManagedState,
Creates a line 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 axis 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.
rtlSpec
Configures the chart for right-to-left languages.
layoutConfig
Configuration for chart layout.
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 LineChart(
super.seriesList, {
super.key,
super.animate,
super.animationDuration,
super.domainAxis,
super.primaryMeasureAxis,
super.secondaryMeasureAxis,
super.disjointMeasureAxes,
common.LineRendererConfig<num>? super.defaultRenderer,
super.customSeriesRenderers,
super.behaviors,
super.selectionModels,
super.rtlSpec,
super.layoutConfig,
super.defaultInteractions,
super.flipVerticalAxis,
super.userManagedState,
});