Modify echarts style summary (loading)

Remove the line chart point:

Links: (https://blog.csdn.net/k912120/article/details/84478191) (invasion deleted)

symbol: 'none'
option = {
    xAxis: {
        type: 'category',
        data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
    },
    yAxis: {
        type: 'value'
    },
    series: [{
        data: [820, 932, 901, 934, 1290, 1330, 1320],
        type: 'line',
        symbol: 'none',  //取消折点圆圈
        smooth: true
    }]
};

 

Achieve a line chart inflection point is open circles:

Links: (https://blog.csdn.net/Little_Pig_Bug/article/details/82856971) (invasion deleted)

   series[{
      symbol: 'circle',
      itemStyle: {
        normal: {
            color: "#000",
            borderColor: '#f58f23',
            borderWidth: 1,
        }
      },    
   }]

color: color is a legend, is round filled with color,

borderColor: circle border

borderWidth: the width of the border of the circle

 

echarts adaptive Size:

window.addEventListener('resize', function() {
  CenterBottomTopRightChart.resize(); 
});

Guess you like

Origin www.cnblogs.com/cmz-32000/p/12022981.html