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 就可以了

 

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