Bar Series onValueMouseOut not triggering
See original GitHub issueI am using vertical clustered bar chart. Rest of the functionality works well, but onValueMouseOut does not trigger when I leave a particular bar. Here is my snippet from React render:
{
data.map((item, i) => {
if (!item.disabled) {
return (
<BarSeries
key={i}
color={item.color}
data={item.datum}
title={item.title}
onValueMouseOver={(datapoint, event) => getHintData(datapoint, event, item.title)}
# **onValueMouseOut**={(datapoint, event) => this._removeHintData(datapoint, event)}
onValueClick={(datapoint, event, j) => handleBarClick(datapoint, event, j, item.datum)}
/>
);
}
return null;
})
}
Issue Analytics
- State:
- Created 6 years ago
- Reactions:10
- Comments:13 (3 by maintainers)
Top Results From Across the Web
Mouseover not getting triggered when two line mark series are ...
When the mouse hovers on the mark, a hint is shown. In certain cases, this mouse over is not getting triggered. I have...
Read more >Bar Series - react-vis
onValueMouseOut. Type: function. Default: none. This handler is triggered either when the user's mouse leaves a mark. The handler passes two arguments ...
Read more >HighchartsReact mouseout event not triggering after chart's ...
It works, but if I try to add a mouseleave listener to the chart's series[0] and series[1], the event never triggers. Adding a...
Read more >Building Custom Charts with react-vis - Aaron Moat
That's how we'll proceed for the rest of the article, where we build an Isotype series. The Goal. Let's build an Isotype plot...
Read more >Creating a React visualization web app | by Jérôme Cukier
This is the 6th post in my Visualization with React series. ... A web app is a comprehensive system of code files working...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
My workaround was to have
animation
in state, and set it totrue
by default, set it tofalse
ononValueMouseOver
, and set it back totrue
ononValueMouseOut
.It will still be nice if this gets fixed since I don’t like having another state in my component.
Hey @ArbaazAnDossani
I did a cursory check on some of the examples and they appear to have their onValueMouseOver/onValueMouseOut/onValueClick working in good order. is there a chance that you animation on? It is a known issue (#381) that animation causes problems here. Additionally you shouldn’t be using BarSeries (bar-series) directly, as that will most likely cause problems?