diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2024-06-26 00:14:19 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2024-06-26 00:14:19 +0800 |
commit | d415bbb33a1c2a3f9a2492668b57c4db0098ef1d (patch) | |
tree | ba2f9ac78a88603bd6183e2c0c313ac15329c3e4 /snippets/chartjs_simple_bar_chart | |
parent | 59de29d5164d245dda1608f5e14cf4e1c981ad3e (diff) |
Update
Diffstat (limited to 'snippets/chartjs_simple_bar_chart')
-rw-r--r-- | snippets/chartjs_simple_bar_chart | 18 |
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 | } | ||