Elmaro Report post Posted June 10, 2021 (edited) I have created a timeseries class component with the following state: this.state = { timeseriesDs: { type: "timeseries", id: "myChart", renderAt: "container", series: "Type", width: "100%", height: "95%", dataSource: { chart: { multicanvas: props.multiGrid, exportEnabled: true }, caption: { text: props.caption, }, subCaption: { text: props.subCaption, }, yaxis: this.generateYaxis(), }, }, tagList: props.tagList, schema: this.generateSchema(), }; The following function is used to change the timeseries' multicanvas property: changeType() { let timeseriesCopy = this.state.timeseriesDs; timeseriesCopy.dataSource.chart = { multicanvas: this.props.multiGrid, exportEnabled: true }; this.setState({ timeseriesDs: timeseriesCopy }); } When I use this function, everything works fine, and the chart changes from having plots for each line to only having one plot with multiple lines. This also works when changing back and forth. However, after changing using the function twice, I get these errors: Everything seemingly still works fine after these errors, but they show up again every time the changeType-function is used. How do I get rid of these pesky errors? ("react-fusioncharts": "^3.1.2", "fusioncharts": "^3.16.0") Edited June 10, 2021 by Elmaro Share this post Link to post Share on other sites
Elmaro Report post Posted June 15, 2021 Anyone, any ideas? Share this post Link to post Share on other sites
Ayan Bhadury Report post Posted June 15, 2021 Hi use setchartData or setJSONData to update the chart configs https://www.fusioncharts.com/dev/api/fusioncharts/fusioncharts-methods#setJSONDatahttps://www.fusioncharts.com/dev/fusiontime/api/fusiontime-methods#setchartdata Share this post Link to post Share on other sites