{b}: {c} ({d}%)", "textStyle": { "fontSize": 14 }, "borderWidth": 0 }, "rippleEffect": { "show": true, "brushType": "stroke", "scale": 2.5, "period": 4 } }, { "type": "pie", "name": "Infections distribution by age", "clockwise": true, "data": [ { "name": "20-39", "value": 6185 }, { "name": "40-59", "value": 4078 }, { "name": ">60", "value": 2256 }, { "name": "0-19", "value": 2040 } ], "radius": [ "30%", "45%" ], "center": [ "50%", "50%" ], "label": { "show": true, "position": "outside", "margin": 8, "formatter": "{a|{a}}{abg|}\n{hr|}\n {b|{b}: }{c} {per|{d}%} ", "backgroundColor": "#eee", "borderColor": "#aaa", "borderWidth": 1, "borderRadius": 2, "rich": { "a": { "color": "#999", "lineHeight": 22, "align": "center" }, "abg": { "backgroundColor": "#e3e3e3", "width": "100%", "align": "right", "height": 22, "borderRadius": [ 2, 2, 0, 0 ] }, "hr": { "borderColor": "#aaa", "width": "100%", "borderWidth": 0.5, "height": 0 }, "b": { "fontSize": 16, "lineHeight": 33 }, "per": { "color": "#eee", "backgroundColor": "#334455", "padding": [ 2, 4 ], "borderRadius": 2 } } }, "tooltip": { "show": true, "trigger": "item", "triggerOn": "mousemove|click", "axisPointer": { "type": "line" }, "formatter": "{a}
{b}: {c} ({d}%)", "textStyle": { "fontSize": 14 }, "borderWidth": 0 }, "rippleEffect": { "show": true, "brushType": "stroke", "scale": 2.5, "period": 4 } } ], "legend": [ { "data": [ ">60", "40-59", "20-39", "0-19" ], "selected": {}, "show": true, "left": "10%", "top": "10%", "padding": 5, "itemGap": 10, "itemWidth": 25, "itemHeight": 14 } ], "tooltip": { "show": true, "trigger": "item", "triggerOn": "mousemove|click", "axisPointer": { "type": "line" }, "textStyle": { "fontSize": 14 }, "borderWidth": 0 }, "title": [ { "text": "Infections/Death Distribution by Age", "subtext": "only based on reported information", "left": "center", "padding": 5, "itemGap": 10 } ], "toolbox": { "show": true, "orient": "horizontal", "itemSize": 15, "itemGap": 10, "left": "75%", "top": "5%", "feature": { "saveAsImage": { "is_show": true, "title": "save as image" }, "restore": { "is_show": true, "title": "restore" }, "dataView": { "title": "data view", "lang": [ "data view", "close", "refresh" ] }, "dataZoom": { "is_show": true, "title": { "zoom": "data zoom", "back": "data zoom restore" } }, "magicType": false, "brush": false } } }; chart_f61f8c64387941e5b31dccde160b2fae.setOption(option_f61f8c64387941e5b31dccde160b2fae);