echarts 折線圖設置曲線平滑

series: [
        {
            name:'部件類',
            type:'line',
           itemStyle: {
            normal: {
                color: 'rgb(137,189,27)'
            }
        },
            data:getValueData(datas.part),
            smooth: true
        },{
            name:'事件類',
            type:'line',
            itemStyle: {
            normal: {
                color: 'rgb(0,136,212)'
            }
        },
            data:getValueData(datas.thing),
            smooth: true
        }
    ]

設置一下smooth: true 就可以了

 

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