Closed sirilicious closed 7 years ago
I'm calculate the key key={
${startAngle}-${arcAngle}}
to avoid using index as key
I think you just pass series=[x, 0, 0]
to the component, can you provide you related code?
I'm using the pie as a gauge for percentage between two choices:
getPiePercentages(){
const pA = this.getPercentage(0)/2; // getPercentage(0) returns e.g. 25
const pB = this.getPercentage(1)/2; // getPercentage(1) returns e.g. 75
return [pA, pB, pB, pA];
}
Which is used as following:
<Pie series={this.getPiePercentages()} ... />
I'll release a new version in next week
Since the new version 0.2.0, i receive following error warning:
I bet on the modified
key={idx}
property in theShape
element.