apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.65k stars 19.61k forks source link

[Bug] 第一个系列的第一个值为null,后面序列图表显示异常多了一条横线 #18542

Open megamew opened 1 year ago

megamew commented 1 year ago

Version

5.4.2

Link to Minimal Reproduction

https://echarts.apache.org/examples/zh/editor.html?code=PYBwLglsB2AEC8sDeBYAULTsBEkwBsBTbALmXS0pzEIA8xScAFJgJgGYAGATkAHFQQGNAy3LYANBSqZsRAGYMy2AMaFoNAE7ZxmAL5iMWXMGD4ARsFqNUeidmmEAhmACuq4mUsTrAZzsA3QgEFPAEkAWzsAc1dkLU0qGKtYHVjscNUIABNGAG1YyncPSilCWUYARk5OXQLCtPCACzlYUtZK3I9sOsIIesbsABZOAFINBMok0ax86pwZRvLWietahrKWqumcTu6V-QHh9emDEEZsAFZT4bbtWIBdA5nCSOhMtyvqUEYue8KwAE8QKLYTwKVRGfCiN7YYBpZS9PyqSAKOzg776ZZzTixcY_Qz4SDHV6Lai1SLqeR2WgQTwjMb3bAUqlMYAQFSEMnkIlSFkAawsb0KtH8lOCzzoJ2R4Le2Pa-DsxkI4MJGxwxjsCm5qWAjmeAGEjNCTgBiADspppHnitOS6Qcdk8hEaOSJU2q2HSEBCyk8UGg1LITuVhUAp6aAfHMIUSCthAAD6gA23QDvcuHA_pAGym8cTSZwgABzQBy8gnUYdM4ANrIT_Kwd1Lkk8WtUSmyFaoAYzhRaHAAtJxWO32Omm5gABwdha9rDG7inbj5wOjzjGyfKgfsVj1yjliMeRvD7At9jtzucABsPd7o_3fbnG2nE-XHmNfb7rHP01Hfe418wq6bG97W47O477eNI8m2nB83yoW8-1OR9qlvPpQLXJ9uHKMCPwzL8mx_Nt_04PsgIzCCrwQmC-2NIdh1gW92H3aCClvbhXyIlcaKwdCM0wv8924PCk1vU1mIkOioLAyhb1OMjh1HVg-xQ_jYFYpN2N3Vtym4qcX3g8iKPvDTyNNU9ZJEl8GKbVCk3kwNFP_Upu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4FtJnFVqwDcI7F2qOrdt8tgowLppII1nNoKEVOzgyuTO-ltj3LDq9vqrgpttmUYKlmuNXOhv-vJvnPZmJq8usjgh6OsT4KJEtCwFuDpEFGFDEIKCTXaAZE8AABkWQogK7DgYAAAtNkYARgMAVQRwQgesaUQ4KugAFQgHVD5CzU8DqGAAAHd27O7CBK1kRuhoAAB1CAMAOoauuUBUaerununQkAfAFe2u6Aeu-QseyexgaQZEe0HewQqu9e-URUDkDCU-qesgDu7eoiXu10P4AEE4JEGgcIaEX4K6bAUwbUG0VQX4AAcTsAJFgDftnsENSAyCCFFHMDIAqQkE_ryEEO_sBD_seEAeAdAeeDsAgegdgfga7VvrrpHowmbtbvPsvu7o_t3v3rAEPuPtHvHpftgAvvwCvpYZvuFEHuHqVDYnnvCCXpXrXo3ofvgevqIhSDSHSBQfSDFDICjrGCLuSF-CFCpDLo8AbrbiQZUdQcYAOSBCRCIC3uYYKCwcmEQeUdUfUaaB0KsaiHkfzu0YSCBDZAgEIAzXMiMZ-H-DwbsGeCIE8ERF5C7RtDADtAdGcbQdgAsZLqpCSbKC7V0eFAyY0a7WUAUGADUdobYntBhE8AADk7BPQTgABpQAfr9c0wBcR8QDHESC9a9OLo0P7-DnQcHQmTh96j7gHPAQhDBV6bHYnbR7QwBcnXHHHkGzH0GdDuGABlX4EIUwB-vh-0fJ6AQp4psRhSMp_xyp6pwEZtTQytZJ0TbAIBsgc5aYex6wQp6AI-hQMACp2dDNTxuxycYJ_QXBwZmhnQsZ4ACZ1-meqZ-JmZuZyCpRxZtRm5lZye9ZzZowRh_hhBxRgpopzhp-vxgJqpmp-QdQq5-Q5F-Q-52AR56oZ5tuV595z575mxqUW4dALQIAA

Steps to Reproduce

第一个系列的第一个值为null,后面序列图表显示异常多了一条横线

Current Behavior

下面的线显示错误,多了横线

Expected Behavior

希望能正常显示

Environment

- OS:windows
- Browser:
- Framework:

Any additional comments?

No response

echarts-bot[bot] commented 1 year ago

@megamew It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗

TRANSLATED
**TITLE** [Bug] The first value of the first series is null, and the following sequence chart shows an abnormally extra horizontal line
helgasoft commented 1 year ago

Problem is in the data (second dataset). Start by removing all null points like ["2023-04-17", null, null, null, null, null]. Throwing in dirty data and expecting the chart to fix it somehow doesn't make sense, does it?

megamew commented 1 year ago

Problem is in the data (second dataset). Start by removing all null points like ["2023-04-17", null, null, null, null, null]. Throwing in dirty data and expecting the chart to fix it somehow doesn't make sense, does it? Thanks for your reply. if I remove the null points,the xAxis's data will lose and the two grids's dates will not aligned.