mapChartType static method
Implementation
static ChartType? mapChartType(String? json) {
switch (json) {
case 'Bar':
return ChartType.bar;
case 'StackingBar':
return ChartType.stackingBar;
case 'StackingBar100':
return ChartType.stackingBar100;
case 'Column':
return ChartType.column;
case 'StackingColumn':
return ChartType.stackingColumn;
case 'StackingColumn100':
return ChartType.stackingColumn100;
case 'Doughnut':
return ChartType.doughnut;
case 'HalfDoughnut':
return ChartType.halfDoughnut;
case 'Pie':
return ChartType.pie;
case 'Area':
return ChartType.area;
case 'StackingArea':
return ChartType.stackingArea;
case 'StackingArea100':
return ChartType.stackingArea100;
case 'Line':
return ChartType.line;
case 'Spline':
return ChartType.spline;
case 'SplineArea':
return ChartType.splineArea;
case 'Polar':
return ChartType.polar;
case 'Radar':
return ChartType.radar;
case 'StepLine':
return ChartType.stepLine;
case 'StepArea':
case 'StackingStepArea':
return ChartType.stepArea;
case 'Pyramid':
return ChartType.pyramid;
case 'Funnel':
return ChartType.funnel;
case 'Scatter':
return ChartType.scatter;
case 'Bubble':
return ChartType.bubble;
default:
return null;
}
}