Line | |
---|
1 | {
|
---|
2 |
|
---|
3 | "title":{
|
---|
4 | "text":"Test stacked bar charts",
|
---|
5 | "style":"{font-size:16px;}"
|
---|
6 | },
|
---|
7 |
|
---|
8 | "elements":[
|
---|
9 | {
|
---|
10 | "type": "bar_stack",
|
---|
11 | "keys": [
|
---|
12 | {"colour":"#FFB900", "text": "Key 1", "font-size": 10},
|
---|
13 | {"colour":"#FFB9F0", "text": "Key 2", "font-size": 16},
|
---|
14 | {"colour":"#FFB9F0", "text": "Key 3"},
|
---|
15 | {"colour":"#FFB9F0", "font-size": 16},
|
---|
16 | {"text": "Key 5", "font-size": 16}
|
---|
17 | ],
|
---|
18 |
|
---|
19 | "values" : [
|
---|
20 | [2.5,{"val":5}],
|
---|
21 | [{"val":2.5},{"val":5},{"val":2.5}],
|
---|
22 | null,
|
---|
23 | [{"val":5},{"val":5},{"val":2},{"val":2},{"val":2,"colour":"#ff00ff"},{"val":2},{"val":2}]
|
---|
24 | ]
|
---|
25 | }
|
---|
26 | ],
|
---|
27 |
|
---|
28 | "x_axis":{
|
---|
29 | "max":4,
|
---|
30 | "steps": 1,
|
---|
31 | "labels": {
|
---|
32 | "labels": ["January","February","March","April"]
|
---|
33 | },
|
---|
34 | "stroke": 12,
|
---|
35 | "tick-height": 6
|
---|
36 | },
|
---|
37 |
|
---|
38 | "y_axis":{
|
---|
39 | "max": 20
|
---|
40 | }
|
---|
41 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.