ChartModel constructor

ChartModel({
  1. ChartType type = ChartType.line,
  2. List<double> values = const [],
  3. List<ChartSeries> series = const [],
  4. List<List<double>> grid = const [],
  5. bool showGrid = false,
  6. bool showMarkers = true,
  7. bool showAxis = true,
  8. bool donut = false,
  9. double innerRadiusRatio = 0.45,
  10. bool normalizeTotals = true,
  11. ChartRamp? ramp,
  12. UvStyle? lineStyle,
  13. UvStyle? barStyle,
  14. UvStyle? gridStyle,
  15. UvStyle? labelStyle,
  16. List<UvStyle>? sliceStyles,
  17. List<String>? xLabels,
  18. List<String>? yLabels,
  19. String? title,
})

Creates a ChartModel with the given configuration.

Implementation

ChartModel({
  ChartType type = ChartType.line,
  List<double> values = const [],
  List<ChartSeries> series = const [],
  List<List<double>> grid = const [],
  bool showGrid = false,
  bool showMarkers = true,
  bool showAxis = true,
  bool donut = false,
  double innerRadiusRatio = 0.45,
  bool normalizeTotals = true,
  ChartRamp? ramp,
  UvStyle? lineStyle,
  UvStyle? barStyle,
  UvStyle? gridStyle,
  UvStyle? labelStyle,
  List<UvStyle>? sliceStyles,
  List<String>? xLabels,
  List<String>? yLabels,
  String? title,
}) : _type = type,
     _values = values,
     _series = series,
     _grid = grid,
     _showGrid = showGrid,
     _showMarkers = showMarkers,
     _showAxis = showAxis,
     _donut = donut,
     _innerRadiusRatio = innerRadiusRatio,
     _normalizeTotals = normalizeTotals,
     _ramp = ramp,
     _lineStyle = lineStyle,
     _barStyle = barStyle,
     _gridStyle = gridStyle,
     _labelStyle = labelStyle,
     _sliceStyles = sliceStyles,
     _xLabels = xLabels,
     _yLabels = yLabels,
     _title = title;