下面是我的Echart Heatmap的代码:
option = {
visualMap: {
min: 0,
max: 10000,
type: 'piecewise',
orient: 'horizontal',
left: 'center',
top: 65,
},
calendar: {
top: 120,
left: 30,
right: 30,
cellSize: ['auto', 13],
range: '2016',
itemStyle: {
borderWidth: 0.5
},
yearLabel: {show: false}
},
series: {
type: 'heatmap',
coordinateSystem: 'calendar',
data: getVirtulData(2016)
}
};
所以想要改变月份边框的颜色。
发布于 2020-06-10 21:20:05
在calendar
中添加splitLine
对象。
calendar: {
top: 120,
left: 30,
right: 30,
cellSize: ['auto', 13],
range: '2016',
splitLine:{
lineStyle:{
color:'red' // This will change the border color
}
},
itemStyle: {
borderWidth: 0.5,
},
yearLabel: {show: false}
},
https://stackoverflow.com/questions/62303275
复制相似问题