Toggle navigation
各类措施统计
By
与***醉
2020-04-19 13:15:10
脚本
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 legend = ['特色产业扶贫', '生态补偿扶贫', '劳务协助扶贫', '社会保障兜底扶贫', '危房改造脱贫', '医疗保障与社会保障扶贫', '教育助学扶贫', '异地搬迁扶贫', '金融扶贫', '饮水安全' ]; var data = []; for (let i = 0; i < legend.length; i++) { data.push({ name: legend[i], value: (Math.random() * 100000).toFixed(0) }); } option = { backgroundColor: '#05274C', color: ['#2AC9FD', '#76FBC0', '#35C96E', '#FCC708', '#48B188', '#5957C2', '#4A5D73'], tooltip: { //提示框 trigger: "item", triggerOn: "mousemove", backgroundColor: "rgba(1,70,86,1)", borderColor: "rgba(0,246,255,1)", borderWidth: 0.5, textStyle: { fontSize: 14 } }, title: [{ text: 18653, subtext: '救助人口', textStyle: { fontSize: 20, color: "#fff" }, subtextStyle: { fontSize: 20, color: '#fff' }, textAlign: "center", x: '50%', y: '47%', }], series: [{ color: ['#2AC9FD', '#76FBC0', '#35C96E', '#FCC708', '#48B188', '#5957C2'], type: 'pie', radius: ['62', '100'], labelLine: { normal: { length: 25, length2: 120, lineStyle: { type: 'solid' } } }, label: { normal: { formatter: (params) => { console.log(params); return '{b| ' + params.name + '} ' + '{c|' + params.percent.toFixed(0) + '%}' }, borderWidth: 0, borderRadius: 4, padding: [0, -86], height: 70, fontSize: 13, align: 'center', color: '#3494BD', rich: { b: { fontSize: 12, lineHeight: 20, color: '#41B3DC', padding: [0, 0, 5, 0] }, c: { fontSize: 20, lineHeight: 20, color: 'orange' } } } }, data: data, }, { type: 'pie', radius: ['50', '51'], data: [100], label: { show: false } } ] };