ywx-sss opened a new issue, #21887: URL: https://github.com/apache/echarts/issues/21887
### Version 6.1.0 ### Link to Minimal Reproduction https://stackblitz.com/github/ywx-sss/echarts-chord-duplicate-repro ### Steps to Reproduce Run `npm start` in the reproduction (SSR SVG mode, same as the browser path): ```js const chart = echarts.init(null, null, { renderer: 'svg', ssr: true, width: 400, height: 300 }); chart.setOption({ series: [{ type: 'chord', data: [{ name: 'a' }, { name: 'a' }], links: [{ source: 'a', target: 'a', value: 1 }], }], }); chart.renderToSVGString(); ``` The repro also includes the empty-name case (`data: [{ name: '' }, { name: '' }]`). ### What is Expected? Duplicate/empty node names are invalid-ish input, but the series should either keep rendering or throw a clear configuration error. Graph already warns "Graph nodes have duplicate name or id"; chord should not crash inside the layout with an internal TypeError. ### What is actually happening? Both duplicate-name and empty-name chord series throw: ```text TypeError: Cannot set properties of undefined (setting 'dataIndex') ``` A single-node chord (`data: [{ name: 'a' }]`) renders fine, so the crash is tied to the node lookup when names collide or are empty. ### Environment - OS: Windows - Browser: Node 24 / SSR SVG - ECharts: 6.1.0 -- 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]
