ChartConfig constructor
const
ChartConfig({
- List<
ChartSeries> series = const [], - ChartViewport? viewport,
- ChartTheme? theme,
- ChartTemplateStyle template = ChartTemplateStyle.dashboard,
- ChartStyle style = ChartStyle.gradient,
- bool showGrid = true,
- bool showAxis = true,
- String? xAxisTitle,
- String? yAxisTitle,
- String? title,
- String? subtitle,
- bool showLegend = false,
- LegendPosition legendPosition = LegendPosition.bottom,
- bool showBorder = false,
- double barBorderRadius = 4,
- bool animate = true,
- Duration animationDuration = const Duration(milliseconds: 300),
- double curveTension = 0.35,
- String? semanticLabel,
Implementation
const ChartConfig({
this.series = const [],
this.viewport,
this.theme,
this.template = ChartTemplateStyle.dashboard,
this.style = ChartStyle.gradient,
this.showGrid = true,
this.showAxis = true,
this.xAxisTitle,
this.yAxisTitle,
this.title,
this.subtitle,
this.showLegend = false,
this.legendPosition = LegendPosition.bottom,
this.showBorder = false,
this.barBorderRadius = 4,
this.animate = true,
this.animationDuration = const Duration(milliseconds: 300),
this.curveTension = 0.35,
this.semanticLabel,
});