Toggle navigation
手机销量
By
王***响
2020-01-09 08:55:46
脚本
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 dataStyle = { normal: { label: { show: false }, } }; option = { backgroundColor: "#1A1835", series: [{ name: 'iPhone', type: 'pie', clockWise: false, radius: [60, 100], itemStyle: dataStyle, hoverAnimation: false, center: ['12%', '45%'], data: [{ value: 66, label: { normal: { rich: { a: { color: '#C257F6', align: 'center', fontSize: 25, fontWeight: "bold" }, b: { color: '#fff', align: 'center', fontSize: 16 } }, formatter: function(params) { return "{b|iPhone}\n\n" + "{a|" + params.value + "个}"; }, position: 'center', x: "14%", show: true, textStyle: { fontSize: '14', fontWeight: 'normal', color: '#fff' } } }, itemStyle: { normal: { color: '#C257F6', shadowColor: '#C257F6', shadowBlur: 3 } } }, { value: 100, name: 'invisible', itemStyle: { normal: { color: '#24375c' }, } }] }, { name: 'HUAWEI', type: 'pie', clockWise: false, radius:[60, 100], itemStyle: dataStyle, hoverAnimation: false, center: ['31%', '45%'], data: [{ value: 80, label: { normal: { rich: { a: { color: '#79C2BC', align: 'center', fontSize: 25, fontWeight: "bold" }, b: { color: '#fff', align: 'center', fontSize: 16 } }, formatter: function(params) { return "{b|HUAWEI}\n\n" + "{a|" + params.value + "个}"; }, position: 'center', show: true, textStyle: { fontSize: '14', fontWeight: 'normal', color: '#fff' } } }, itemStyle: { normal: { color: '#79C2BC', shadowColor: '#79C2BC', shadowBlur: 3 } } }, { value: 100, name: 'invisible', itemStyle: { normal: { color: '#24375c' }, } }] }, { name: 'XIAOMI', type: 'pie', clockWise: false, radius: [60, 100], itemStyle: dataStyle, hoverAnimation: false, center: ['50%', '45%'], data: [{ value: 60, label: { normal: { rich: { a: { color: '#389af4', align: 'center', fontSize: 25, fontWeight: "bold" }, b: { color: '#fff', align: 'center', fontSize: 16 } }, formatter: function(params) { return "{b|XIAOMI}\n\n" + "{a|" + params.value + "个}"; }, position: 'center', show: true, textStyle: { fontSize: '14', fontWeight: 'normal', color: '#fff' } } }, itemStyle: { normal: { color: '#389af4', shadowColor: '#389af4', shadowBlur: 3 } } }, { value: 100, name: 'invisible', itemStyle: { normal: { color: '#24375c' }, } }] }, { name: 'VIVO', type: 'pie', clockWise: false, radius: [60, 100], itemStyle: dataStyle, hoverAnimation: false, center: ['69%', '45%'], data: [{ value: 53, label: { normal: { rich: { a: { color: '#79C2BC', align: 'center', fontSize: 25, fontWeight: "bold" }, b: { color: '#fff', align: 'center', fontSize: 16 } }, formatter: function(params) { return "{b|VIVO}\n\n" + "{a|" + params.value + "个}"; }, position: 'center', show: true, textStyle: { fontSize: '14', fontWeight: 'normal', color: '#fff' } } }, itemStyle: { normal: { color: '#79C2BC', shadowColor: '#79C2BC', shadowBlur: 3 } } }, { value: 100, name: 'invisible', itemStyle: { normal: { color: '#24375c' }, } }] }, { name: 'OTHER', type: 'pie', clockWise: false, radius: [60, 100], itemStyle: dataStyle, hoverAnimation: false, center: ['88%', '45%'], data: [{ value: 30, label: { normal: { rich: { a: { color: '#EBBD6D', align: 'center', fontSize: 25, fontWeight: "bold" }, b: { color: '#fff', align: 'center', fontSize: 16 } }, formatter: function(params) { return "{b|OTHER}\n\n" + "{a|" + params.value + "个}"; }, position: 'center', show: true, textStyle: { fontSize: '14', fontWeight: 'normal', color: '#fff' } } }, itemStyle: { normal: { color: '#EBBD6D', shadowColor: '#EBBD6D', shadowBlur: 3 } } }, { value: 100, name: 'invisible', itemStyle: { normal: { color: '#24375c' }, } }] }] }