1. 程式人生 > 其它 >echarts圖表按照時分,日,月,維度展示時間資料

echarts圖表按照時分,日,月,維度展示時間資料

echarts圖表按照時分,日,月,維度展示時間資料

      {
        color: ["#00C5CD", "#FF8510"],
        dataZoom: this.dataZoom,
        xAxis: {
          type: "time",
          min: "dataMin",
          max: "dataMax",
          boundaryGap: false,
          axisLabel: {
            // 格式化橫軸座標時間刻度
            formatter: {
              year: 
"{yyyy}年", month: "{M}月", day: "{MM}/{dd}", hour: "{HH}:{mm}", minute: "{HH}:{mm}", second: "{HH}:{mm}:{ss}", millisecond: "{hh}:{mm}:{ss} {SSS}", none: "{yyyy}-{MM}-{dd} {hh}:{mm}:{ss} {SSS}", }, },
// x軸顯示豎線 splitLine: { show: true, lineStyle: { // 顯示虛線 type: [10, 10], color: "#e0e0e0", dashOffset: 5, }, }, axisLine: { show: true, lineStyle: { color:
"#e0e0e0", }, }, }, yAxis: { type: "value", name: this.yUnit, splitLine: { show: false, }, axisLine: { show: false, }, }, series: this.getSeries, }
打不死的小強