Echarts line chart problem

clipboard.png

clipboard.png
(figure 2)

figure 1, one of which has no data, how can I achieve the effect (figure 2)?

Link:
http://echarts.baidu.com/echa.

Mar.25,2021

connectNulls: true


subject, if you really connect the lines, then on Thursday, there was no data, but you created a number out of thin air at the front end (this number could be 12 or 13. It depends on how you want to draw this line, isn't it?
so:
is this number that your front end can decide?
1. If so, detect which position is empty and assign a value; how much
is assigned depends on what you want the line to look like, and then write your own expression. For example, if you want Thursday's data to be the average of Wednesday and Friday, you add and divide the two numbers by 2;
2. If not, you may want to check whether your requirement is real:
when the number is empty, should it be 0?
or is it intolerable for the business to have numbers that should not be empty at all?

the above is just a brick to attract jade, welcome to discuss.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-7b10a7-27a55.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-7b10a7-27a55.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?