Toggle navigation
雷达图
By
困***里
2020-10-30 07:11: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
图表已生成
整理代码
刷新
代码
option = { backgroundColor:"#000", tooltip : { show:false, //雷达图的tooltip不会超出div,也可以设置position属性,position定位的tooltip 不会随着鼠标移动而位置变化,不友好 confine: true, enterable: true, //鼠标是否可以移动到tooltip区域内 }, radar: { // shape: 'circle', shape:'polygon', center: ['50%', '55%'], radius: '50%', splitNumber: 5, // 雷达图圈数设置 name: { textStyle: { color: '#838D9E', }, }, // 设置雷达图中间射线的颜色 axisLine: { lineStyle: { color: '#5F65A9', }, }, indicator: [ // { // name: '通信', // max: 30, // //若将此属性放在radar下,则每条indicator都会显示圈上的数值,放在这儿,只在通信这条indicator上显示 // // axisLabel: { // // show: true, // // fontSize: 12, // // color: '#838D9E', // // showMaxLabel: false, //不显示最大值,即外圈不显示数字30 // // showMinLabel: false, //显示最小数字,即中心点显示0 // // }, // color:"#ffffff", // fontSize:14, // }, { name: '零售', max: 30,}, { name: '电力', max: 30}, { name: '交通', max: 30}, { name: '食品', max: 30}, { name: '建筑', max: 30}, { name: '银行', max: 30}, { name: '汽车', max: 30}, { name: '电子工程', max: 30}, ], name: { rich: { a: { color: '#ffffff', fontSize:14, fontFamily:'SourceHanSansSC-Regular', padding:[0,0,5,0] // lineHeight: 20 }, b: { color: '#009bff', align: 'center', fontSize:14, fontFamily:'SourceHanSansSC-Regular', // padding: 2, // borderRadius: 4 } }, formatter: (a,b)=>{ return `{b|999}\n{a|${a}}` } }, //雷达图背景的颜色,在这儿随便设置了一个颜色,完全不透明度为0,就实现了透明背景 splitArea : { show : false, areaStyle : { color: 'rgba(255,0,0,0)', // 图表背景的颜色 }, }, splitLine : { show : true, lineStyle : { width : 1, color : '#5F65A9', // 设置网格的颜色 }, }, }, series: [{ name: '诉求类别:', // tooltip中的标题 type: 'radar', //表示是雷达图 symbol: 'circle', // 拐点的样式,还可以取值'rect','angle'等 symbolSize: 0, // 拐点的大小 areaStyle: { normal: { width: 1, opacity: 0.2, }, }, data: [ { value: [17, 24, 27, 29, 26, 16, 13, 17, 25], name: '', // 设置区域边框和区域的颜色 itemStyle: { normal: { color: 'rgba(0,155,255,1)', lineStyle: { color: 'rgba(0,155,255,1)', }, }, } } ], }], }