echarts升級1:各個參數調研

1、 

grid: {
            left: '2%',
            right: '5%',
            bottom: '3%',
            containLabel: true
          },

 containLabel: true    控制x軸內內容是否允許溢出

2、

xAxis: {
            name: "日期",
            type: "category",
            boundaryGap: true,
            data: this.xAxis.map(function (str) {
              return str.replace(' ', '\n')
            })
          },

此爲日期摺疊

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章