We are constructing multiple charts in a layout having option to remove chart from that layout. We constructed two charts one is Serial type and other one is gauge type. When we remove first chart that is serial type. then an error Is showing from Amcharts.js
"Cannot read property 'length' of undefined at b.processGraphs (amcharts.js:9)"
this is code how we using it.

React element is generated successfully but when it goes in render it crashes.
We are constructing multiple charts in a layout having option to remove chart from that layout. We constructed two charts one is Serial type and other one is gauge type. When we remove first chart that is serial type. then an error Is showing from Amcharts.js
"Cannot read property 'length' of undefined at b.processGraphs (amcharts.js:9)"
this is code how we using it.
React element is generated successfully but when it goes in render it crashes.