You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.
I managed to temporarily solve the issue by using jQuery to get the series, name and value of the element clicked on a chart.
handler: function (e) {
console.log("Mouse Up Event");
console.log(e.toElement["__data__"]);
},
componentDidMount: function () {
var x = this.refs.linePlusBarChartComponent;
if (x !== null) {
$(x).bind( "mouseup", this.handler );
}
},
componentWillUnmount: function () {
var x = this.refs.linePlusBarChartComponent;
if (x !== null) {
$(x).unbind( "mouseup", this.handler );
}
},
I am attempting to implement onClick events on react-nvd3 components. Is there a way I can use onClick events on a react-nvd3 component?
The text was updated successfully, but these errors were encountered: