]> git.argeo.org Git - gpl/argeo-suite.git/blob - js/src/chart/BarChart.js
Revert loading of XSD
[gpl/argeo-suite.git] / js / src / chart / BarChart.js
1 import Chart from 'chart.js/auto';
2
3 import ChartJsPart from './ChartJsPart.js';
4
5 export default class BarChart extends ChartJsPart {
6 /** Constructor taking the mapName as an argument. */
7 constructor(chartName) {
8 super(chartName);
9 this.setChart(new Chart(this.getChartCanvas(), {
10 type: 'bar',
11 data: {
12 datasets: []
13 },
14 options: {
15 scales: {
16 y: {
17 beginAtZero: true
18 },
19 },
20 animation: false,
21 }
22 }));
23
24 }
25
26
27 }