Rev | Line | |
---|
[7849] | 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 | "colours": ["#FF0000","#0000FF"],
|
---|
| 12 | "keys": [
|
---|
| 13 | {"colour":"#FFB900", "text": "Key 1", "font-size": 10},
|
---|
| 14 | {"colour":"#FFB9F0", "text": "Key 2", "font-size": 16}
|
---|
| 15 | ],
|
---|
| 16 | "ti--p": "#total#<br>(bar total)",
|
---|
| 17 | "values": [
|
---|
| 18 | [2.5,{"val":5}],
|
---|
| 19 | [{"val":2.5},{"val":5},{"val":2.5}],
|
---|
| 20 | null,
|
---|
| 21 | [{"val":5},{"val":5},{"val":2},{"val":2},{"val":2,"colour":"#ff00ff","tip":"hello"},{"val":2},{"val":2}]
|
---|
| 22 | ]
|
---|
| 23 | },
|
---|
| 24 | {
|
---|
| 25 | "type": "bar",
|
---|
| 26 | "colour": "#9933CC",
|
---|
| 27 | "text": "Bar",
|
---|
| 28 | "font-size": 10,
|
---|
| 29 | "values" : [9,6,7,9]
|
---|
| 30 | }
|
---|
| 31 | ],
|
---|
| 32 |
|
---|
| 33 | "x_axis":{
|
---|
| 34 | "labels": {
|
---|
| 35 | "labels": ["January","February","March","April"]
|
---|
| 36 | },
|
---|
| 37 | "stroke": 12,
|
---|
| 38 | "tick-height": 6
|
---|
| 39 | },
|
---|
| 40 |
|
---|
| 41 | "y_axis":{
|
---|
| 42 | "max": 20
|
---|
| 43 | }
|
---|
| 44 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.