ChartModel constructor
ChartModel({
- ChartType type = ChartType.line,
- List<
double> values = const [], - List<
ChartSeries> series = const [], - List<
List< grid = const [],double> > - 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,
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;