option = {
polar: {
center: ['50%', '50%'],
radius: '80%'
},
radiusAxis: {
type: 'value',
splitArea: {
show: true, // 是否显示分隔区域
areaStyle: {
color: ['rgba(255, 255, 255, 0)', 'rgba(200, 200, 200, 0.3)'] // 分隔区域颜色
// 其他分隔区域样式属性
}
},
// 其他径向轴属性
},
series: [{
type: 'bar',
data: [2, 1, 3, 4],
coordinateSystem: 'polar'
}]
};
在上述例子中,通过在 splitArea 属性中设置 show 控制是否显示分隔区域,areaStyle 控制分隔区域的样式,包括颜色等。你可以根据需要进一步调整这些属性。
转载请注明出处:http://www.zyzy.cn/article/detail/5249/ECharts