Toggle navigation
饼图
By
2***克
2020-01-17 06:34:47
脚本
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=['#afa3f5', '#00d488', '#3feed4', '#3bafff', '#f1bb4c','#aff', "rgba(250,250,250,0.5)"]; option = { title: { text: '规划建筑总面积', subtext: '200', x: 'center', y: '47%', textStyle: { fontSize:20, fontWeight:'normal', color: ['#000'] }, subtextStyle: { color: '#2B93DF', fontSize: 16 }, }, grid: { bottom: 150, left: 0, right: '10%' }, legend: { show:false, orient: 'vertical', top: "middle", right: "5%", textStyle: { color: '#f2f2f2', fontSize: 25, }, icon: 'roundRect' }, series: [ // 主要展示层的 { radius: ['29%', '59%'], center: ['50%', '50%'], type: 'pie', itemStyle: { normal: { color: function(params) { return colorList[params.dataIndex] } } }, labelLine: { normal: { show: true, lineStyle: { color: '#d3d3d3' }, align: 'right' }, color: "#000", emphasis: { show: true } }, label:{ normal:{ formatter: function(params){ var str = ''; str = params.name + ":" + params.value return str }, height: 35, } }, data: [ { value:12.4, name:'嵩明县', }, {value:20.3, name:'盘龙区'}, {value:24.7, name:'晋宁区'}, {value:23.1, name:'官渡区'}, {value:30.1, name:'五华区'}, {value:15.7, name:'西山区'}, {value:10.1, name:'呈贡区'}], }, // 边框的设置 { radius: ['54%', '59%'], center: ['50%', '50%'], type: 'pie', label: { normal: { show: false }, emphasis: { show: false } }, labelLine: { normal: { show: false }, emphasis: { show: false } }, animation: false, tooltip: { show: false }, itemStyle: { normal: { color:'rgba(250,250,250,0.5)' } }, data: [{ value: 1, }], } ] };