htr3n opened a new issue #16664: URL: https://github.com/apache/echarts/issues/16664
### Version 5.3.1 ### Link to Minimal Reproduction https://codesandbox.io/s/echarts-category-83rl4d?file=/src/index.js ### Steps to Reproduce 1. Create a simple line chart with the following options ```javascript import * as echarts from "echarts"; const chart = echarts.init(document.getElementById("chart")); const options = { animation: false, xAxis: { type: "category", splitLine: { show: true }, data: ["1:00", "2:00", "3:00", "4:00", "5:00"] }, yAxis: { type: "category", axisLabel: { show: true }, showMinLabel: true, showMaxLabel: true, data: ["A", "B", "C"] }, series: [ { type: "line", data: ["null", "A", undefined, "C", null], symbol: "circle", showSymbol: true, symbolSize: 8, lineStyle: { opacity: 0 }, connectNulls: false } ] }; chart.setOption(options); ``` ### Current Behavior The chart is rendered correctly with respect to valid values (e.g. the values that are defined in the Y axis `data` parameter) and `"null"` (note that `null` in double quotes as a string) but incorrectly regarding the native JavaScript `null` value. For instance, in the included example, the last three values are JavaScript native `null` has been rendered as legit ones with the dots at the value `A`. ### Expected Behavior The chart should not render any dots regarding the input data `null` (without double quotes). Surprisingly, ECharts renders correctly the value `"null"` (`null` inside double quotes as a legit JS string, not the native `null` value). Another note, ECharts renders correctly if the input data is the native JS `undefined` value. ### Environment ```markdown - OS: N/A - Browser: N/A - Framework: N/A ``` ### Any additional comments? _No response_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
