Skip to content

Instantly share code, notes, and snippets.

@pbeshai
Last active August 29, 2015 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pbeshai/6266524329e223aee11b to your computer and use it in GitHub Desktop.
Save pbeshai/6266524329e223aee11b to your computer and use it in GitHub Desktop.
_handleHover(d) {
// send an action indicating which data point to highlight
ChartActions.highlight(d);
}
<circle key={i} r={r(d[radiusKey])} cx={width / 2}
cy={-r(0) / 2} strokeWidth={strokeWidth} stroke={color(d[colorKey])}
onMouseOver={this._handleHover.bind(this, d)}
onMouseOut={this._handleHover.bind(this, null)} />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment