For testing layout on initial load I set default text for title (I have also added two additional subtitle lines)
When I load the page, it displays perfectly. But if I then remove the subtitle or title or try to re-add them it breaks completely. (see example defaults below) If I switch from xy to chartgrid then all is well. Im assuming the redraw is checking for the existence of the element and redrawing? Anyhoo hope this helps even though my code base differs
metadata: { id: null, chartType: "xy", title: "Default Title", sub: "Super Happy Sub Title", subsub: "", source: "", credit: "", size: "auto" }
It produces this error:
invariant.js:49 Uncaught Invariant Violation: findComponentRoot(..., .0.0.0.0.$xy.1.$xy-chart): Unable to find element. This probably means the DOM was unexpectedly mutated (e.g., by the browser), usually due to forgetting a <tbody> when using tables, nesting tags like <form>, <p>, or <a>, or using non-SVG elements in an <svg> parent. Try inspecting the child nodes of the element with React ID ''.
For testing layout on initial load I set default text for title (I have also added two additional subtitle lines)
When I load the page, it displays perfectly. But if I then remove the subtitle or title or try to re-add them it breaks completely. (see example defaults below) If I switch from
xy
tochartgrid
then all is well. Im assuming the redraw is checking for the existence of the element and redrawing? Anyhoo hope this helps even though my code base differsmetadata: { id: null, chartType: "xy", title: "Default Title", sub: "Super Happy Sub Title", subsub: "", source: "", credit: "", size: "auto" }
It produces this error:invariant.js:49 Uncaught Invariant Violation: findComponentRoot(..., .0.0.0.0.$xy.1.$xy-chart): Unable to find element. This probably means the DOM was unexpectedly mutated (e.g., by the browser), usually due to forgetting a <tbody> when using tables, nesting tags like <form>, <p>, or <a>, or using non-SVG elements in an <svg> parent. Try inspecting the child nodes of the element with React ID ''.