ChartConfig constructor

const ChartConfig({
  1. List<ChartSeries> series = const [],
  2. ChartViewport? viewport,
  3. ChartTheme? theme,
  4. ChartTemplateStyle template = ChartTemplateStyle.dashboard,
  5. ChartStyle style = ChartStyle.gradient,
  6. bool showGrid = true,
  7. bool showAxis = true,
  8. String? xAxisTitle,
  9. String? yAxisTitle,
  10. String? title,
  11. String? subtitle,
  12. bool showLegend = false,
  13. LegendPosition legendPosition = LegendPosition.bottom,
  14. bool showBorder = false,
  15. double barBorderRadius = 4,
  16. bool animate = true,
  17. Duration animationDuration = const Duration(milliseconds: 300),
  18. double curveTension = 0.35,
  19. 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,
});