Working JavaScript charts
[gpl/argeo-suite.git] / js / src / graph / TestGraph.js
diff --git a/js/src/graph/TestGraph.js b/js/src/graph/TestGraph.js
deleted file mode 100644 (file)
index 9cc67db..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-import Chart from 'chart.js/auto';
-
-export default class TestGraph {
-
-       init() {
-               const ctx = document.getElementById('myChart');
-
-               new Chart(ctx, {
-                       type: 'bar',
-                       data: {
-                               labels: ['Red', 'Blue', 'Yellow', 'Green', 'Purple', 'Orange'],
-                               datasets: [{
-                                       label: '# of Votes',
-                                       data: [12, 19, 3, 5, 2, 3],
-                                       borderWidth: 1
-                               }]
-                       },
-                       options: {
-                               scales: {
-                                       y: {
-                                               beginAtZero: true
-                                       }
-                               }
-                       }
-               });
-       }
-}