Hi,
when created 2 charts in page, 1 is bar and other 1 is pie,
bar chart is working fine but when i change its type from bar to pie of any of them, then it stops showing,
here is my code,
wrapper.append(`
<div id="chart"></div>
`);
const chart_data = {
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul'],
datasets: [
{
values:[2,10,20,30,40,50,60]
}
]
};
const graph = new frappe.Chart( "#chart", {
title: "My Projects",
data: chart_data,
type: 'pie'
});
setTimeout(function () { graph.draw(!0); }, 1);
Error is console,
Uncaught DOMException: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.
Version,
ERPNext: v12.0.7 (version-12)
Frappe Framework: v12.0.7 (version-12)