Toggle navigation
雷达图
By
s***1
2018-10-15 02:03:19
脚本
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 imgPath = ['http://bmob-cdn-15355.b0.upaiyun.com/2017/12/01/bee4341c4089af7980b87074a77479ad.png'] option = { backgroundColor: '#101736', color: ['#00c2ff', '#f9cf67', '#e92b77'], legend: { show: true, // icon: 'circle',//图例形状 bottom: 45, center: 0, itemWidth: 14, // 图例标记的图形宽度。[ default: 25 ] itemHeight: 14, // 图例标记的图形高度。[ default: 14 ] itemGap: 21, // 图例每项之间的间隔。[ default: 10 ]横向布局时为水平间隔,纵向布局时为纵向间隔。 textStyle: { fontSize: 14, color: '#ade3ff' }, data: ['2016', '2017', '2018'], }, radar: [{ indicator: [{ text: '科技创新联盟', max: 100 }, { text: '科技成果转化中心', max: 100 }, { text: '工程技术中心(工程实验室)', max: 100 }, { text: '新型研发机构', max: 100 }, { text: '科技创孵化器', max: 100 } ], textStyle: { color: 'red' }, center: ['50%', '50%'], radius: 142, startAngle: 90, splitNumber: 3, orient: 'horizontal', // 图例列表的布局朝向,默认'horizontal'为横向,'vertical'为纵向. // shape: 'circle', // backgroundColor: { // image:imgPath[0] // }, name: { formatter: '{value}', textStyle: { fontSize: 14, //外圈标签字体大小 color: '#5b81cb' //外圈标签字体颜色 } }, splitArea: { // 坐标轴在 grid 区域中的分隔区域,默认不显示。 show: true, areaStyle: { // 分隔区域的样式设置。 color: ['#141c42', '#141c42'], // 分隔区域颜色。分隔区域会按数组中颜色的顺序依次循环设置颜色。默认是一个深浅的间隔色。 } }, // axisLabel:{//展示刻度 // show: true // }, axisLine: { //指向外圈文本的分隔线样式 lineStyle: { color: '#153269' } }, splitLine: { lineStyle: { color: '#113865', // 分隔线颜色 width: 1, // 分隔线线宽 } } }, ], series: [{ name: '雷达图', type: 'radar', itemStyle: { emphasis: { lineStyle: { width: 4 } } }, data: [{ name: '2016', value: [85, 65, 55, 90, 82], areaStyle: { normal: { // 单项区域填充样式 color: { type: 'linear', x: 0, //右 y: 0, //下 x2: 1, //左 y2: 1, //上 colorStops: [{ offset: 0, color: '#00c2ff' }, { offset: 0.5, color: 'rgba(0,0,0,0)' }, { offset: 1, color: '#00c2ff' }], globalCoord: false }, opacity: 1 // 区域透明度 } }, symbolSize: 2.5, // 单个数据标记的大小,可以设置成诸如 10 这样单一的数字,也可以用数组分开表示宽和高,例如 [20, 10] 表示标记宽为20,高为10。 label: { // 单个拐点文本的样式设置 normal: { show: true, // 单个拐点文本的样式设置。[ default: false ] position: 'top', // 标签的位置。[ default: top ] distance: 2, // 距离图形元素的距离。当 position 为字符描述值(如 'top'、'insideRight')时候有效。[ default: 5 ] color: '#6692e2', // 文字的颜色。如果设置为 'auto',则为视觉映射得到的颜色,如系列色。[ default: "#fff" ] fontSize: 14, // 文字的字体大小 formatter:function(params) { return params.value; } } }, itemStyle: { normal: { //图形悬浮效果 borderColor: '#00c2ff', borderWidth: 2.5 } }, // lineStyle: { // normal: { // opacity: 0.5// 图形透明度 // } // } }, { name: '2017', value: [50, 20, 45, 30, 75], symbolSize: 2.5, itemStyle: { normal: { borderColor: '#f9cf67', borderWidth: 2.5, } }, areaStyle: { normal: { // 单项区域填充样式 color: { type: 'linear', x: 0, //右 y: 0, //下 x2: 1, //左 y2: 1, //上 colorStops: [{ offset: 0, color: '#f9cf67' }, { offset: 0.5, color: 'rgba(0,0,0,0)' }, { offset: 1, color: '#f9cf67' }], globalCoord: false }, opacity: 1 // 区域透明度 } }, // lineStyle: { // normal: { // opacity: 0.5// 图形透明度 // } // } }, { name: '2018', value: [37, 80, 12, 50, 25], symbolSize: 2.5, itemStyle: { normal: { borderColor: '#e92b77', borderWidth: 2.5, } }, areaStyle: { normal: { // 单项区域填充样式 color: { type: 'linear', x: 0, //右 y: 0, //下 x2: 1, //左 y2: 1, //上 colorStops: [{ offset: 0, color: '#e92b77' }, { offset: 0.5, color: 'rgba(0,0,0,0)' }, { offset: 1, color: '#e92b77' }], globalCoord: false }, opacity: 1 // 区域透明度 } } }] }, ] };