Toggle navigation
By
C***4
2020-01-17 08:05:52
脚本
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 = { series: [{ name: '漏斗图', color: ['#23a4f5', '#8084d9', '#3cd1c0', '#ebd352'], type: 'funnel', left: '5%', top: 0, bottom: 0, width: '70%', min: 0, max: 100, minSize: '40%', maxSize: '100%', sort: 'descending', legendHoverLink: false, gap: 10, label: { show: true, position: 'inside', fontSize: 10, formatter: function(params) { let text = ''; switch (params.dataIndex) { case 0: text = `{value1|${params.data.data}辆}`; break; case 1: text = `{value2|${params.data.data}辆}`; break; case 2: text = `{value3|${params.data.data}辆}`; break; case 3: text = `{value4|${params.data.data}辆}`; break; } return text; }, rich: { value1: { color: '#333', fontWeight: 700, fontFamily: 'Camar' }, value2: { color: '#333', fontWeight: 700, fontFamily: 'Camar' }, value3: { color: '#333', fontWeight: 700, fontFamily: 'Camar' }, value4: { color: '#333', fontWeight: 700, fontFamily: 'Camar' } } }, labelLine: { length: 10, lineStyle: { width: 0, type: 'solid' } }, itemStyle: { borderColor: '#fff', borderWidth: 0 }, emphasis: { itemStyle: { color: '#999' } }, markLine: { data: [ [{ x: '70%', y: '11%', lineStyle: { color: '#999', type: 'solid', width: 2 }, symbol: 'none', }, { x: '69.5%', y: '14%', symbol: 'none' } ], [{ x: '82%', y: '12.5%', lineStyle: { color: '#999', type: 'solid' }, symbol: 'none', label: { formatter: () => { return "满足测虐率" }, position: 'start' } }, { x: '90%', y: '12.5%', symbol: 'none' } ], [{ x: '90%', y: '12.5%', lineStyle: { color: '#999', type: 'solid' }, symbol: 'none' }, { x: '90%', y: '25%', label: { formatter: () => { return '123%' } } } ], [{ x: '66%', y: '37%', lineStyle: { color: '#999', type: 'solid', width: 2 }, symbol: 'none', }, { x: '65.5%', y: '40%', symbol: 'none' } ], [{ x: '78%', y: '38%', lineStyle: { color: '#999', type: 'solid' }, label: { formatter: () => { return "满足测虐率" }, position: 'start' }, symbol: 'none' }, { x: '90%', y: '38%', symbol: 'none' } ], [{ x: '90%', y: '38%', lineStyle: { color: '#999', type: 'solid' }, symbol: 'none' }, { x: '90%', y: '29%', } ], [{ x: '90%', y: '38%', lineStyle: { color: '#999', type: 'solid' }, symbol: 'none' }, { x: '90%', y: '50%', label: { formatter: () => { return "23%" }, }, } ], [{ x: '62%', y: '61%', lineStyle: { color: '#999', type: 'solid', width: 2 }, symbol: 'none', }, { x: '61.5%', y: '64%', symbol: 'none' } ], [{ x: '75%', y: '62.5%', lineStyle: { color: '#999', type: 'solid' }, label: { formatter: () => { return "满足测虐率" }, position: 'start' }, symbol: 'none' }, { x: '90%', y: '62.5%', symbol: 'none' } ], [{ x: '90%', y: '62.5%', lineStyle: { color: '#999', type: 'solid' }, symbol: 'none' }, { x: '90%', y: '55%', } ], [{ x: '90%', y: '62.5%', lineStyle: { color: '#999', type: 'solid' }, symbol: 'none' }, { x: '90%', y: '75%', label: { formatter: () => { return "23%" }, }, } ], [{ x: '58%', y: '87%', lineStyle: { color: '#999', type: 'solid', width: 2 }, symbol: 'none', }, { x: '57.5%', y: '90%', symbol: 'none' } ], [{ x: '70%', y: '88%', lineStyle: { color: '#999', type: 'solid' }, label: { formatter: () => { return "满足测虐率" }, position: 'start' }, symbol: 'none' }, { x: '90%', y: '88%', symbol: 'none' } ], [{ x: '90%', y: '88%', lineStyle: { color: '#999', type: 'solid' }, symbol: 'none' }, { x: '90%', y: '79%', } ], ] }, data: [{ "value": 80, "data": 411833, "name": "满足策略策略数" }, { "value": 60, "data": 196625, "name": "检查升级数" }, { "value": 40, "data": 191061, "name": "下载成功数" }, { "value": 20, "data": 106227, "name": "升级成功车辆数" } ] }, { name: '漏斗图', type: 'funnel', left: '5%', top: 0, bottom: 0, width: '70%', min: 0, max: 100, minSize: '40%', maxSize: '100%', legendHoverLink: false, sort: 'descending', gap: 10, label: { show: false }, labelLine: { length: 10, lineStyle: { width: 0, type: 'solid', color: '#000' } }, itemStyle: { borderColor: '#fff', borderWidth: 0, shadowColor: '#ddd', shadowBlur: 12 }, data: [{ "value": 80, "rote": 0, "name": "满足策略策略数", "rate": "满足策略率" }, { "value": 60, "rote": 47.7, "name": "检查升级数", "rate": "检测更新率" }, { "value": 40, "rote": 97.2, "name": "下载成功数", "rate": "下载成功率" }, { "value": 20, "rote": 54.0, "name": "升级成功车辆数", "rate": "升级成功率" } ] } ] };