{ "title":{ "text":"Test stacked bar charts", "style":"{font-size:16px;}" }, "elements":[ { "type": "bar_stack", "keys": [ {"colour":"#FFB900", "text": "Key 1", "font-size": 10}, {"colour":"#FFB9F0", "text": "Key 2", "font-size": 16} ], "tip": "#total#
(bar total)", "on-show": {"type": "pop", "delay":0.5, "cascade":0.6}, "values": [ [2.5,{"val":5}], [{"val":2.5},{"val":5},{"val":2.5}], null, [{"val":5},{"val":5},{"val":2},{"val":2},{"val":2,"colour":"#ff00ff","tip":"hello"},{"val":2},{"val":2}] ] }, { "type": "bar", "colour": "#9933CC", "text": "Bar", "font-size": 10, "on-show": {"type": "pop", "delay":0.5, "cascade":0.6}, "values" : [9,6,7,9] } ], "x_axis":{ "max":4, "steps": 1, "labels": { "labels": ["January","February","March","April"] }, "stroke": 12, "tick-height": 6 }, "y_axis":{ "max": 20 }, "tooltip":{ "mouse": 2, "stroke":1 } }