You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I am using the PieChart example but it is not rendering. Below the error in Browser console logs.
Error: attribute y1: Expected length, "NaN".
Error: attribute y2: Expected length, "NaN".
Error: attribute transform: Expected number, "rotate(NaN)".
Error: attribute transform: Expected number, "translate(NaN,NaN)".
Error: attribute transform: Expected number, "translate(NaN,NaN)".
Activity
asifsha commentedon May 25, 2019
var sort = null;
var dataPie = {
label: 'somethingA',
values: [{ x: 'SomethingA', y: 10 }, { x: 'SomethingB', y: 4 }, { x: 'SomethingC', y: 3 }]
};
<PieChart
data={dataPie}
width={600}
height={400}
margin={{ top: 10, bottom: 10, left: 100, right: 100 }}
sort={sort}
/>
Worked for me, can you please try again?