Toggle navigation
进度条
By
和***y
2020-12-19 17:52:31
脚本
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 = { backgroundColor: '#0E1327', series: [{ name: "上方线", type: "gauge", radius: '65%', // 动态 startAngle: 115.5, endAngle: 67.5, axisLine: { lineStyle: { color: [ [1, '#1A5B50'] // 动态 ], width: 1 } }, axisLabel: { show: false, }, axisTick: { show: false, }, splitLine: { show: false, }, detail: { show: false } }, { name: "右方线", type: "gauge", radius: '65%', // 动态 startAngle: 22.5, endAngle: -22.5, axisLine: { lineStyle: { color: [ [1, '#1A5B50'] // 动态 ], width: 1 } }, axisLabel: { show: false, }, axisTick: { show: false, }, splitLine: { show: false, }, detail: { show: false } }, { name: "下方线", type: "gauge", radius: '65%', // 动态 startAngle: -67.5, endAngle: -115.5, axisLine: { lineStyle: { color: [ [1, '#1A5B50'] // 动态 ], width: 1 } }, axisLabel: { show: false, }, axisTick: { show: false, }, splitLine: { show: false, }, detail: { show: false }, }, { name: "左方线", type: "gauge", radius: '65%', // 动态 startAngle: -157.5, endAngle: 157.5, axisLine: { lineStyle: { color: [ [1, '#1A5B50'] // 动态 ], width: 1 } }, axisLabel: { show: false, }, axisTick: { show: false, }, splitLine: { show: false, }, detail: { show: false }, }, { name: "右上方", type: "gauge", radius: '65%', // 动态 startAngle: 60, endAngle: 30, splitNumber: 7, axisLine: { show: false, }, axisLabel: { show: false, }, axisTick: { show: false, }, splitLine: { show: true, length: 12, lineStyle: { color: '#1A5B50', width: 4 } }, detail: { show: false }, }, { name: "右下方", type: "gauge", radius: '65%', // 动态 startAngle: -30, endAngle: -60, splitNumber: 7, axisLine: { show: false, }, axisLabel: { show: false, }, axisTick: { show: false, }, splitLine: { show: true, length: 12, lineStyle: { color: '#1A5B50', width: 4 } }, detail: { show: false }, }, { name: "左下方", type: "gauge", radius: '65%', // 动态 startAngle: -122, endAngle: -152, splitNumber: 7, axisLine: { show: false, }, axisLabel: { show: false, }, axisTick: { show: false, }, splitLine: { show: true, length: 12, lineStyle: { color: '#1A5B50', width: 4 } }, detail: { show: false }, }, { name: "左上方", type: "gauge", radius: '65%', // 动态 startAngle: 152, endAngle: 122, splitNumber: 7, axisLine: { show: false, }, axisLabel: { show: false, }, axisTick: { show: false, }, splitLine: { show: true, length: 12, lineStyle: { color: '#1A5B50', width: 4 } }, detail: { show: false }, }, { type: 'pie', radius: ['58%', '60%'], itemStyle: { normal: { label: { show: false }, labelLine: { show: false } } }, hoverAnimation: false, data: [{ value: 90, itemStyle: { color: { type: 'linear', x: 0, y: 0, x2: 0, y2: 1, colorStops: [{ offset: 0, color: '#C4F72F' // 0% 处的颜色 }, { offset: 1, color: '#31F3FF' // 100% 处的颜色 }], global: false // 缺省为 false }, }, }, { value: 10, itemStyle: { color: '#2B3F43', }, }] }, { type: 'pie', radius: ['50%', '55%'], itemStyle: { label: { show: true }, labelLine: { show: false } }, hoverAnimation: false, data: [{ value: 90, label: { formatter: '{number|90}{percent|%}\n{text|这是文案}', color: '#31F3FF', fontSize: 60, fontWeight: "bold", position: 'center', show: true, rich: { number: { color: '#31F3FF', fontSize: 60, verticalAlign: 'bottom' }, percent: { color: '#31F3FF', fontSize: 30, verticalAlign: 'bottom' }, text: { color: '#FFFFFF', fontSize: 30, lineHeight: 50, verticalAlign: 'bottom' } } }, itemStyle: { color: '#1D3B4F', }, }, { value: 10, itemStyle: { color: '#141D2C', }, }] } ] };