Handle SAC area click events
This commit is contained in:
parent
5259b8552a
commit
7408860a67
|
@ -22,6 +22,7 @@ var Area = React.createClass({
|
|||
className={'path path-'+ this.props.i}
|
||||
d={this.state.lastd || this.props.d}
|
||||
fill={this.props.color}
|
||||
onClick={this.props.onClick}
|
||||
onMouseOver={this.props.onMouseOver}
|
||||
shapeRendering="optimizeQuality" />
|
||||
);
|
||||
|
|
|
@ -195,6 +195,7 @@ var StackedAreaChart = React.createClass({
|
|||
item={item} i={i}
|
||||
d={roundPathCorners(this.buildPathD(path), 3)}
|
||||
color={Colors[i]}
|
||||
onClick={this.handleClick.bind(this, item)}
|
||||
onMouseOver={this.handleFocusIn.bind(this, i)} />
|
||||
);
|
||||
}.bind(this);
|
||||
|
|
Loading…
Reference in New Issue