Realization of broken Line function by echarts

now you need to use echarts to implement a broken-line statistics function, as shown in figure

clipboard.png

displays the data for 10 days, and there may be data changes every hour of the day. If there is a change in the data, the inflection point will be displayed, and the horizontal line will be displayed all the time without any change.


there is an idea to try. Push an array. At first, the array is empty, and then the data changes to the array push data. If you remove the previous data after ten days, you should be able to achieve

.
Menu