score:2
Accepted answer
Turn off pointer events for your text element.
g.append('text') // button label
.attr({"pointer-events": "none"})
...
Source: stackoverflow.com
Related Query
- Button with text label: How do I keep the hover color even when over text label?
- How to keep mouse over object when using drag and snap to with d3.js
- How do I make the text hover over a data point?
- How can I toggle the value of an svg text element with D3.js when user clicks the text?
- How to update the fill color on existing svg elements with d3.js?
- How to show and hides nodes when you move the mouse over a node in D3 Javascript
- How to avoid the overlapping of text elements on the TreeMap when child elements are opened in D3.js?
- D3.js - how to add zoom button with the default wheelmouse zoom behavior
- How to place text on the circle when using D3.js force layout?
- How do I hide the text labels in d3 when the nodes are too small?
- How can I color ocean with topojson in d3 when I have coordinate info for land?
- How can I keep a d3 mouseover open while my mouse is over the tooltip?
- How to update the contents of a text input with d3?
- How to limit the text of polygons in Voronoi diagram with D3.js?
- How to keep the duplicate letters in enter() when update() already have that letter in D3
- D3.js v4 - how to add zoom button with the default wheelmouse zoom behavior
- How to keep the circle, stroke and font size when zooming in d3.js V4 layout?
- D3.js: How to keep marker and text on same position when zooming in and out
- In a d3 scatterplot using data from a csv file, how do i draw lines connecting related points when the mouse is over a point?
- How to fix the draggable function in a bubble chart with text inside?
- changing color of d3.js pie chart label when hovering over slice?
- How to parse a csv file with d3 when parser is not the comma
- How can I wrap the long label text in the bubble chart in d3?
- How do I make my text keep the variable number and not the reference in javascript D3?
- how to stop the slider as I hover over it?
- How do I append the text tag to just one svg e.g. svg tag with "id=50"?
- How to flip horizontally the text on the left part of the canvas with d3.js?
- How to color the text labels individually on an axis in d3?
- D3.js Hierarchical Edge Bundling, how do i change the color of a text group?
- How to simultaneously update the color of elements in a SVG when I mouseover elements of a second SVG using D3
More Query from same tag
- Making an interactive scatter plot with d3?
- Project cannot locate imported d3-graphviz module
- How to remove D3 link text from visualization
- D3 nesting data with arbitrary depth
- How does datamaps display images instead of bubbles?
- D3 stack Streamgraph not curvy
- Is it possible to use D3.tree() with a dataset that includes parents instead of children?
- Drawing heatmap with d3
- Replacing fixed json variable with a json value returned from a php file
- d3 v4: Using stack with histogram data?
- Not able to append label on edge of graph in d3.js
- Modify d3.js code to generate static 3d plot
- Display data of an associative array in a table with d3.js
- How to get access to the selected element?
- Time series line chart is not sync with axis
- NVD3: how to unset brush on default load?
- NVD3 chart fails to calculate legend text length in Chrome, since Window.getComputedStyle does not return font-size correctly
- d3 gauge chart with labels and percentages?
- Dropdown select with default value
- Multiline svg text axis ticks in d3
- Efficient grouping of nodes that can reach each other
- Venue/Indoor Map using D3.js and Geojson
- I am trying yo make D3plus accept non-date value for boxplot and reduce space between rows in bootstrap
- Cypher, get all nodes with and relationships for a given label without duplicates, empty relationships or empty nodes
- c3.js - Tooltips on xgrid lines
- Can D3.js fetch in data using "whitespace" separated values?
- Method chaining seems to break this d3 code. Why?
- How do I create a single "<g> = group" with the existing "<g> = groups" in D3.js
- Sorting an array by another index array
- d3.js doughnut chart :: Additional paths are rendered and not updated