in frontend/app/components/chart/chart.ts [89:143]
initChart() {
switch (this.chartType) {
case ChartType.AREA_CHART:
this.chart =
new google.visualization.AreaChart(this.elementRef.nativeElement);
break;
case ChartType.BAR_CHART:
this.chart =
new google.visualization.BarChart(this.elementRef.nativeElement);
break;
case ChartType.BUBBLE_CHART:
this.chart =
new google.visualization.BubbleChart(this.elementRef.nativeElement);
break;
case ChartType.CANDLESTICK_CHART:
this.chart = new google.visualization.CandlestickChart(
this.elementRef.nativeElement);
break;
case ChartType.COLUMN_CHART:
this.chart =
new google.visualization.ColumnChart(this.elementRef.nativeElement);
break;
case ChartType.COMBO_CHART:
this.chart =
new google.visualization.ComboChart(this.elementRef.nativeElement);
break;
case ChartType.HISTOGRAM:
this.chart =
new google.visualization.Histogram(this.elementRef.nativeElement);
break;
case ChartType.LINE_CHART:
this.chart =
new google.visualization.LineChart(this.elementRef.nativeElement);
break;
case ChartType.PIE_CHART:
this.chart =
new google.visualization.PieChart(this.elementRef.nativeElement);
break;
case ChartType.SCATTER_CHART:
this.chart = new google.visualization.ScatterChart(
this.elementRef.nativeElement);
break;
case ChartType.STEPPED_AREA_CHART:
this.chart = new google.visualization.SteppedAreaChart(
this.elementRef.nativeElement);
break;
case ChartType.TABLE:
this.chart =
new google.visualization.Table(this.elementRef.nativeElement);
break;
default:
this.chart = undefined;
break;
}
}