Skip to content

Instantly share code, notes, and snippets.

@petebrowne
Created June 12, 2016 15:33
Show Gist options
  • Save petebrowne/b1f8e4290276d7e64e992172ed9cae0e to your computer and use it in GitHub Desktop.
Save petebrowne/b1f8e4290276d7e64e992172ed9cae0e to your computer and use it in GitHub Desktop.
renderSlice(value, i) {
let {innerRadius, outerRadius, cornerRadius, padAngle} = this.props;
return (
<Slice key={i}
innerRadius={innerRadius}
outerRadius={outerRadius}
cornerRadius={cornerRadius}
padAngle={padAngle}
value={value}
label={value.data}
fill={this.colorScale(i)} />
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment