aboutsummaryrefslogtreecommitdiffhomepage
path: root/snippets/chartjs_simple_bar_chart
diff options
context:
space:
mode:
Diffstat (limited to 'snippets/chartjs_simple_bar_chart')
-rw-r--r--snippets/chartjs_simple_bar_chart18
1 files changed, 18 insertions, 0 deletions
diff --git a/snippets/chartjs_simple_bar_chart b/snippets/chartjs_simple_bar_chart
new file mode 100644
index 0000000..0e581cb
--- /dev/null
+++ b/snippets/chartjs_simple_bar_chart
@@ -0,0 +1,18 @@
1{
2 "type": "bar",
3 "data": {
4 "labels": ["Red", "Blue", "Yellow", "Green", "Purple", "Orange"],
5 "datasets": [{
6 "label": "# of Votes",
7 "data": [12, 19, 3, 5, 2, 3],
8 "borderWidth": 1
9 }]
10 },
11 "options": {
12 "scales": {
13 "y": {
14 "beginAtZero": true
15 }
16 }
17 }
18}