Skip to content
Snippets Groups Projects

Introduce the Insights controllers

2 files
+ 29
2
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -18,6 +18,10 @@ export default class ChartBuilder {
return this.stackedBar();
case 'bar':
return this.bar();
case 'line':
return this.line();
case 'pie':
return this.pie();
default:
return '';
}
@@ -62,6 +66,28 @@ export default class ChartBuilder {
};
}
line() {
return {
type: 'line',
data: this.chartData,
options: {
...chartOptions.barChartOptions(),
...this.moreChartOptions(),
},
};
}
pie() {
return {
type: 'pie',
data: this.chartData,
options: {
...chartOptions.barChartOptions(),
...this.moreChartOptions(),
},
};
}
moreChartOptions() {
return {
title: {
Loading