Any Chart widget - Cannot read property type of undefined TypeError: Cannot read property type of undefined

0
I am using Anychart object to build custom charts within Mendix 8, I have been able to build some visuals and display them but I also get some errors I don’t understand with it. In some specific pages, the Any Chart errors out every time the page is opened. I tried setting multiple values for Data and Layout, either taking the values from the object, leaving the fields empty, or setting default values like {} for Data and [] for layout. I also tried hard coding the actual Data and Layout strings but I get the same error.   Here is an example of a page I get: Detail on the error: In the console; Message: Cannot read property 'type' of undefined TypeError: Cannot read property 'type' of undefined at Object.React$$1.cloneElement (http://localhost:8080/widgets/siemens/assetstatus/AssetStatus.js?637024274739298535:26490:31) at t.getSidebarElement (http://localhost:8080/widgets/com/mendix/widget/custom/AnyChart/AnyChart.js?637024274739298535:17:327524) at t.<anonymous> (http://localhost:8080/widgets/siemens/assetstatus/AssetStatus.js?637024274739298535:24365:25) at t.render (http://localhost:8080/widgets/com/mendix/widget/custom/AnyChart/AnyChart.js?637024274739298535:17:327203) at To (http://localhost:8080/mxclientsystem/mxui/mxui.js?637024274739298535:61:63008) at ko (http://localhost:8080/mxclientsystem/mxui/mxui.js?637024274739298535:61:62803) at Do (http://localhost:8080/mxclientsystem/mxui/mxui.js?637024274739298535:61:66637) at Ga (http://localhost:8080/mxclientsystem/mxui/mxui.js?637024274739298535:61:90681) at qa (http://localhost:8080/mxclientsystem/mxui/mxui.js?637024274739298535:61:91065) at Ts (http://localhost:8080/mxclientsystem/mxui/mxui.js?637024274739298535:61:97952) Here is an example of another page in the same style that displays an AnyChart object in a template view  successfully: I don’t know if this might help, but here is a view of the page that fails from Mendix Studio: I cannot see what difference there might be between the one that works and the one that doesn’t, maybe some one has one. Sebastien  
asked
0 answers