Toggle navigation
圆环图-图例和数值联动
By
H413886249
2017-09-28 10:13:29
脚本
16
21
作品使用的第三方脚本
数据管理
上传数据
支持小于 5M 任意格式(csv, xlsx, json, xml, ...)的数据文件
上传后可以通过生成的文件链接异步获取托管的数据。
历史数据
0 条
无历史数据
代码修改记录
信息提示
保存作品
对当前截图不满意?你还可以
上传本地截图
重新截图
作品名称
作品描述
标签
geo
grid
legend
markLine
markPoint
bar
effectScatter
line
lines
map
timeline
title
toolbox
tooltip
visualMap
作品默认版本
最新
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
20:11:45
图表已生成
整理代码
刷新
代码
option = { "toolbox": { "feature": { "saveAsImage": { "type": "png" } } }, "grid": { "show": false, "top": "65px", "height": "340px", "left": "20%", "right": "20%", "width": "500px", "z": 2, "zlevel": 0, "bottom": 30 }, "legend": { "selectedMode": false, "itemWidth": 14, "itemHeight": 14, "itemGap": 20, "bottom": 180, "top": "middle", "left": "0px", "orient": "vertical", "data": [ "初中及以下", "高中", "专科", "本科", "硕士及以上" ] }, "series": [ { "type": "pie", "radius": [ 110, 170 ], "avoidLabelOverlap": false, "hoverAnimation": false, "stillShowZeroSum": false, "height": 230, "label": { "normal": { "position": "inside", "textStyle": { "color": "#fff" } } }, "data": [ { "value": 2, "name": "初中及以下", "realValue": 2, "percent": 50 }, { "value": 0, "name": "高中", "realValue": 0, "percent": 0 }, { "value": 0, "name": "专科", "realValue": 0, "percent": 0 }, { "value": 1, "name": "本科", "realValue": 1, "percent": 25 }, { "value": 1, "name": "硕士及以上", "realValue": 1, "percent": 25 } ] } ], "color": [ "#732FC3", "#824DD2", "#9067E0", "#9D82EF", "#ADA1FF", "#C0B7FF", "#B7B1DD", "#A099D0", "#8A83BB" ], "unit": "人", "title": [ { "text": "受教育程度", "subtext": "%", "textStyle": { "color": "#000", "fontStyle": "normal", "fontWeight": "bolder", "fontFamily": "Microsoft YaHei", "fontSize": 16 }, "left": 0, "bottom": 0, "top": "0px" }, { "text": "", "subtext": "基数: 所有被访者 n=4 \n\n数据来源:Q3", "textStyle": { "color": "#000", "fontStyle": "normal", "fontWeight": "bolder", "fontFamily": "Microsoft YaHei", "fontSize": "12" }, "left": 0, "bottom": "30px", "top": "510px" } ], "chartHeight": "568" }