[英]custom border color in Calendar in eCharts
這是我的 Echart 熱圖日歷的代碼:
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)
}
};
所以想改變月份邊框的顏色。
在calendar
中添加splitLine
object 。
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}
},
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.