score:4
i slightly updated your demo at http://jsfiddle.net/xh2vj/1/ and have set transition time to 1000ms to easier recognise the animation. tooltip fade in and fade out - it works for me:
did not changed much, but removed the 'instant pop up' at mouseover:
.on("mouseover", function(v) {
div.transition()
.duration(1000) //longer to easier be seen
.style("opacity", 0.9); //this is for the tooltip
var text = "alert<br/>"+ formattime(v[0]) + "<br/>" + v[1];
div.html(text)
.style("left", (d3.event.pagex)+"px")
.style("top", (d3.event.pagey-28) + "px")
.attr("fill", "steelblue");
// .style("opacity", 0.9); // not here
})
tested on latest desktop browsers as chrome 35, safari 7 and firefox 29. older opera 12 struggles with mouse over, maybe the tooltip overlays the point and therefore the mouse over does not count anymore. what browser do you use?
Source: stackoverflow.com
Related Query
- d3 transition on tooltip not working
- D3 - Positioning tooltip on SVG element not working
- d3 transition for transform translate not working for DIV
- D3 transition not working
- d3.js Tooltip positioning not working
- d3 v4 line chart transition not working
- D3.v4 Projection Transition not Working
- Tooltip to display in two separate lines not working in Firefox
- Transition not working
- D3- positioning of a tooltip using d3.mouse is not working
- Tooltip in d3/topojson choropleth map not working
- D3.js v4 circle radius transition not working as expected
- Transition on path in d3.js is not working
- Browser tooltip not working in d3.js bar chart
- x position of tooltip in d3 stacked bar chart not working
- Transition In D3 Bar Graph Not Working
- D3 transition not working as intended
- d3 transition not working when triggered from mouseover/mouseout handler
- jquery tipsy tooltip not working with d3.js circles
- d3 js transition not working
- Tooltip not working on second line in NVD3 MultiChart
- D3 realtime graphing: slide from right&shift data as data length exceeds limit transition is not working
- D3 Transition not working as expected
- D3 General update pattern transition not working on pie chart
- D3 fill transition for heatmap not working
- SVG path transition in D3 (v5) not working properly
- D3 transition working on "background-color" but not on "width"
- d3js Opacity Transition Not Working as Expected
- tooltip on chart not working
- Transition not working d3
More Query from same tag
- How to rotate all text by x degree on x-axis in Javascript
- d3.js horizontal bar graph with positive and negative values - move y axis labels to far left side of graph
- angularjs nvd3 multibar chart xAxis tick not showing
- D3 visualization filter - wrong x and y coordinates
- Embeding Quick Animation/SWF in an SVG element
- Media query in d3.js only partially successful
- Updating a graph on change of data in d3.js
- Legend titles in D3
- Trouble drawing lines from data in d3.js + data manipulation
- Fisheye effect on timeline
- Drawing arrows using d3
- How to change color scheme?
- D3.js - How to map continuous domains to discrete ranges with scales?
- How to make ordinal tick labels adjust automatically in D3
- d3.js Stacked Bar Chart working for one dataset but not the other
- appending entire svg to dom element leads to Exception... "String contains an invalid character" code: "5"
- Visualizing dataset into d3 contour by converting obervable to notebook to plain JS
- How to add a second value to the links of a Sankey diagram in d3.jS :
- What makes grid lines visible?
- Centered labels in D3 tree
- How to play a sound from audio tag in D3js selection?
- D3 barchart using external data
- Choosing the data to display in d3
- How to access weight property of a node in a force layout?
- How to add multiple tool tips to a bar chart
- Positioning tooltip with mouse hover
- Timeseries line-chart in dc.js - time Dimension not working
- Nested array loses information when variable declared
- Highlighting child nodes in D3js v4
- get values of single candlestick in mouseover in candlestick chart in d3