Toggle navigation
曲线雷达图
By
真***u
2019-07-17 07:09:30
脚本
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 data=[]; // 起始点半径 var pointStart_r = 3; // 结束点半径 var pointEnd_r = 1; // 区间绘制点的个数 for (var i = 0; i <= 50; i++) { // var t = i / 45 * Math.PI; // 区间点半径 var r = pointEnd_r + (pointStart_r - pointEnd_r) / 50 * i; data.push([Math.sin(2*Math.PI / 360) * r, Math.cos(2*Math.PI / 360) * r]); } var title=[]; title.push("ρ=sin(θ*1/2)"); option= { backgroundColor: '#041a55', title: { }, polar: { center: ['50%', '50%'], radius:'50%', }, tooltip: { show:true }, angleAxis: [{ polarIndex:0, type: 'value', startAngle: 45, // 雷达图绘图区域圆形虚线分割线 axisLine: { show: true, lineStyle: { type: 'dashed', color: '#0457a0' } }, axisLabel: { show:true, color: '#fff' }, splitLine: { show: true, lineStyle: { type: 'dashed', color: '#0457a0' } }, // data: [0, 2, 4, 6] }], radiusAxis: { show: true, polarIndex:0, min: 0, // 雷达图绘图区域圆形虚线分割线 splitLine: { show: true, lineStyle: { type: 'dashed', color: '#0457a0' } }, }, series: [{ polarIndex: 0, coordinateSystem: 'polar', name: title[0], type: 'line', showSymbol: false, // 雷达图点围成的区域 areaStyle: { opacity: 0.1, }, lineStyle: { width: 1, type: 'solid', color: '#19bbf1', shadowColor: 'rgba(25,187,241, 1)', shadowBlur: 15 }, label:{ normal:{ show:false, position:'bottom' } }, data: data }], // animationDuration: 2000 };