dongyikuan919 opened a new issue, #21890: URL: https://github.com/apache/echarts/issues/21890
### Version 6.1.0 from npm. Also reproduced at master `34f4d927eafe251f26f63afd3aeefa30f2feba30`. ### Link to Minimal Reproduction https://echarts.apache.org/examples/en/editor.html?version=6.1.0&renderer=svg&enc=deflate&code=TVC7bsMwENv9Fdxko4LiPiYHmYsu6ZCiS-BBjc-2EEUypIuLtPW_F7LTIotwIgkeeX5g4x02-M4A7cxJp3-FVttIMgMiBUOxwj4JAL4MVEFE7Y50EXLGGs06CZw-JU7boddCYtT2TBXuJ4k_6oP4hnmY6sXAGndMK-oMmOpsWmetD8gP3kWGD4Ycw7fYi94H8-UdayskxEiBzUFbURdz_EV_6HVgbEDzEJVxhnN3tlZieZcigVxDgUIqM3ZCIsZQgcOZJD5Nw32Fp7KU6Ml0PVd4LMuUrlinRclZReLX-Xr5t1LKz6O8udc_qBZsX9by2maqr0beRW9JWd_l1553EOh1hHGjtqZBR_5EHC6VkFht9fbnxbWp0mWlmCLnS5alzZvfvT_vOBjX5UVxE7UxcfCR8mKdTb8 ### Steps to Reproduce 1. Open the editor link. It sets two Sankey nodes with positive values (1 and 2) and an empty `links` array. 2. Check the console. The example renders both a horizontal and a vertical chart to SVG. Both log `has invalid geometry: true`. 3. Add a link between the nodes and run again. The linked graph gives the nodes finite positions. ### Current Behavior The node position along the chart's main axis is `NaN` (horizontal `x`, vertical `y`). The layer scale divides by the maximum depth, which is 0 when all the nodes are in a single column or row. The resulting SVG includes invalid coordinates. ### Expected Behavior Positive-valued nodes without edges should render at finite positions in a single column or row. The SVG should still contain valid node and label geometry when links arrive separately. ### Environment - Node.js 22.23.1 on macOS arm64, SVG SSR - Apache ECharts official editor with 6.1.0 and SVG rendering -- 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]
