簡體   English   中英

eCharts 中日歷中的自定義邊框顏色

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM