]> git.argeo.org Git - gpl/argeo-suite.git/blob - js/src/chart/TestGraph.js
Revert loading of XSD
[gpl/argeo-suite.git] / js / src / chart / TestGraph.js
1 import Chart from 'chart.js/auto';
2
3 export default class TestGraph {
4
5 init() {
6 const ctx = document.getElementById('myChart');
7
8 new Chart(ctx, {
9 type: 'bar',
10 data: {
11 labels: ['Red', 'Blue', 'Yellow', 'Green', 'Purple', 'Orange'],
12 datasets: [{
13 label: '# of Votes',
14 data: [12, 19, 3, 5, 2, 3],
15 borderWidth: 1
16 }]
17 },
18 options: {
19 scales: {
20 y: {
21 beginAtZero: true
22 }
23 }
24 }
25 });
26 }
27 }