Failed to run code TypeError: Cannot set properties of undefined (setting ‘dataIndex’)
Jun 5, 2023
Apache ECharts is an open-sourced JavaScript visualization tool, which can run fluently on PC and mobile devices. It is compatible with most modern Web Browsers.
ISSUE:
I’m using ECharts Graph type .While pulling data from server & constructing graph nodes I got this issue. In my Graph contains lot nodes while presenting to user according my business use case.
RESOLUTION:
While constructing Graph node on client side I identified their is a duplicate node name present while retrieving data from server.
Code with Issue:
To resolve the above code issues we need to maintain the unique node names like below.
REF’s