Bar chart mouseover is handled outside react
rach opened this issue · 0 comments
rach commented
This is be plug back into the react/redux machinery using dispatch or action. I was initially worried about redrawing all the graphs.. It needs to be investigated further
.on("mouseover", (d, i) => {
//this should use action dispatch to update the state
var t = datetimeFormat(new Date(xdata[i] * 1000));
JQuery(React.findDOMNode(that)).find('.bar-value').text(t + " => " + yFormatter(d));
})
.on("mouseout", (d, i) => {
//this should use action dispatch to update the state
JQuery(React.findDOMNode(that)).find('.bar-value').text("");
});