Hi all, I’m using the AnyChart widget to display production data. I want to display the total production as bars and the average production as scatters. However, I keep getting the following client error: Cannot read properties of undefined (reading 'type') TypeError: Cannot read properties of undefined (reading 'type') at React$$1.cloneElement (http://localhost:8085/widgets/intelizign/digitalclock/DigitalClock.js?637979929626521301:26675:31) at t.getSidebarElement (http://localhost:8085/widgets/com/mendix/widget/custom/AnyChart/AnyChart.js?637979929626521301:40:208856) at t.<anonymous> (http://localhost:8085/widgets/intelizign/digitalclock/DigitalClock.js?637979929626521301:24501:25) at t.render (http://localhost:8085/widgets/com/mendix/widget/custom/AnyChart/AnyChart.js?637979929626521301:40:208535) at qa (http://localhost:8085/mxclientsystem/mxui/mxui.js?637979929626521301:39:71514) at Wa (http://localhost:8085/mxclientsystem/mxui/mxui.js?637979929626521301:39:71313) at qs (http://localhost:8085/mxclientsystem/mxui/mxui.js?637979929626521301:39:112072) at kc (http://localhost:8085/mxclientsystem/mxui/mxui.js?637979929626521301:39:98290) at Ec (http://localhost:8085/mxclientsystem/mxui/mxui.js?637979929626521301:39:98218) at Sc (http://localhost:8085/mxclientsystem/mxui/mxui.js?637979929626521301:39:98081) I am still testing it and give the following data as the default value for my data attribute: [ { "x": [ 1661713200000, 1661716800000, 1661720400000, 1661724000000 ], "y": [ 20, 32, 16, 25 ], "type": "bar" }, { "x": [ 1661713200000, 1661716800000, 1661720400000, 1661724000000 ], "y": [ 20, 32, 48, 25 ], "type": "scatter" } ] Any advise?
asked
Nico Mouton
1 answers
0
Hi Nico,
your JSON looks alright and I successfully tested it: