Toggle navigation
证明环形图
By
柳***6
2018-06-14 03:52:14
脚本
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
图表已生成
整理代码
刷新
代码
// 颜色集合 var colorList = [ '#D271EB', '#B799D7', '#FDD826', '#F8A3AA', '#96E54B', '#259EF3', '#69D7CB', '#ee82ed', '#8fca5f', '#b995f5' ]; var originalData = [{ value: 100, name: '居住证明' }, { value: 100, name: '死亡证明' }, { value: 100, name: '应征入伍政审意见证明' }, { value: 100, name: '志愿服务证明' }, { value: 100, name: '社区矫正人员情况证明' }, { value: 100, name: '社会实践证明' }, { value: 100, name: '发展党员证明' } ]; echarts.util.each(originalData, function(item, index) { item.itemStyle = { normal: { color: colorList[index] } }; }); option = { backgroundColor: '#0F2360', tooltip: { trigger: 'item', formatter: "{a}
{b}: {c} ({d}%)" }, legend: { orient: 'horizontal', left: 'center', bottom: 30, padding: 5, itemWidth: 20, itemHeight: 8, textStyle: { color: '#fff' }, data: ['居住证明', '死亡证明', '应征入伍政审意见证明', '志愿服务证明', '社区矫正人员情况证明', '社会实践证明', '发展党员证明'] }, series: [{ name: '访问来源', type: 'pie', selectedMode: 'single', selectedOffset: 16, //选中是扇区偏移量 startAngle: 90, radius: ['20%', '39%'], label: { normal: { show: false, position: 'inner' } }, labelLine: { normal: { show: false } }, itemStyle: { normal: { borderWidth: 8, borderColor: '#0F2360', }, emphasis: { borderWidth: 0, shadowBlur: 5, shadowOffsetX: 0, shadowColor: 'rgba(0, 0, 0, 0.2)' } }, data: originalData }, { name: '访问来源', type: 'pie', radius: ['40%', '43%'], label: { normal: { formatter: '{per|{d}%}', backgroundColor: '#eee', borderColor: '#aaa', borderWidth: 1, borderRadius: 4, rich: { a: { color: '#999', lineHeight: 22, align: 'center' }, abg: { backgroundColor: '#333', width: '100%', align: 'right', height: 22, borderRadius: [4, 4, 0, 0] }, hr: { borderColor: '#aaa', width: '100%', borderWidth: 0.5, height: 0 }, b: { fontSize: 16, lineHeight: 33 }, per: { color: '#eee', backgroundColor: '#0F2360', padding: [2, 4], fontSize: 16, borderRadius: [4, 4, 4, 4] } } } }, labelLine: { normal: { show: true, length: 30, length2: 40, lineStyle: { type: 'dashed' } }, }, itemStyle: { normal: { borderWidth: 8, borderColor: '#0F2360', }, emphasis: { borderWidth: 0, shadowBlur: 5, shadowOffsetX: 0, shadowColor: 'rgba(0, 0, 0, 0.2)' } }, data: originalData } ] };