该示例中是六边形的角在竖直方向,怎样使其旋转一个角度使边在竖直方向上?在配置项中并没有找到,望告知谢谢!
配置项如下
// Schema:
// date,AQIindex,PM2.5,PM10,CO,NO2,SO2
var dataBJ = [
[134,96,165,2.76,83,41,29]
];
var lineStyle = {
normal: {
width: 1,
opacity: 0.8
}
};
option = {
backgroundColor: '#161627',
radar: {
indicator: [
{name: 'AQI', max: 300},
{name: 'PM2.5', max: 250},
{name: 'PM10', max: 300},
{name: 'CO', max: 5},
{name: 'NO2', max: 200},
{name: 'SO2', max: 100}
],
shape: 'circle',
splitNumber: 5,
name: {
textStyle: {
color: 'rgb(238, 197, 102)'
}
},
splitLine: {
lineStyle: {
color: [
'rgba(238, 197, 102, 0.1)', 'rgba(238, 197, 102, 0.2)',
'rgba(238, 197, 102, 0.4)', 'rgba(238, 197, 102, 0.6)',
'rgba(238, 197, 102, 0.8)', 'rgba(238, 197, 102, 1)'
].reverse()
}
},
splitArea: {
show: false
},
axisLine: {
lineStyle: {
color: 'rgba(238, 197, 102, 0.5)'
}
}
},
series: [
{
name: '北京',
type: 'radar',
lineStyle: lineStyle,
data: dataBJ,
symbol: 'none',
itemStyle: {
normal: {
color: '#F9713C'
}
},
areaStyle: {
normal: {
opacity: 0.3
}
}
}
]
};