Echars can not render a smooth line when it process alot of data

Viewed 504

Im using Echarts to build a line graph and i need it to be smooth. I tried smooth: true or smooth: 1.5 but it does not help when the graph has a lot of data. How to make it work with around 2000 data records?

Here is my code:

option = {
    xAxis: {
        type: 'category',
        
    },
    yAxis: {
        type: 'value'
    },
    series: [{
        data: [["12",0],["23",1],["32",1],["40",2],["42",2],["72",3]...],
        type: 'line',
        smooth: true
    }]
};

Brake Echarts graph

1 Answers

If you need to get the smooth line then inserted data is incorrect. Try to change data to the simple array, i.e. you data should be like [1,2,3,4,5...].

Related