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}
|
className={'path path-'+ this.props.i}
|
||||||
d={this.state.lastd || this.props.d}
|
d={this.state.lastd || this.props.d}
|
||||||
fill={this.props.color}
|
fill={this.props.color}
|
||||||
|
onClick={this.props.onClick}
|
||||||
onMouseOver={this.props.onMouseOver}
|
onMouseOver={this.props.onMouseOver}
|
||||||
shapeRendering="optimizeQuality" />
|
shapeRendering="optimizeQuality" />
|
||||||
);
|
);
|
||||||
|
|
|
@ -195,6 +195,7 @@ var StackedAreaChart = React.createClass({
|
||||||
item={item} i={i}
|
item={item} i={i}
|
||||||
d={roundPathCorners(this.buildPathD(path), 3)}
|
d={roundPathCorners(this.buildPathD(path), 3)}
|
||||||
color={Colors[i]}
|
color={Colors[i]}
|
||||||
|
onClick={this.handleClick.bind(this, item)}
|
||||||
onMouseOver={this.handleFocusIn.bind(this, i)} />
|
onMouseOver={this.handleFocusIn.bind(this, i)} />
|
||||||
);
|
);
|
||||||
}.bind(this);
|
}.bind(this);
|
||||||
|
|
Loading…
Reference in New Issue