score:1
this is the same issue like this: svganimatedstring missing method indexof
i have same problem without using d3. i'm using only pure svg and appending it into dom with angularjs controller. problem isn't in d3. you can fix this problem with adding return false value into jquery click event handler on elements that contains link.
part of my svg:
<g id="1" class="node">
<a xlink:title="title">
<polygon fill="#cccccc" stroke="#cccccc" points="25,-434 25,-457 98,-457 98,-434 25,-434"></polygon>
<polygon fill="none" stroke="black" points="25,-434 25,-457 98,-457 98,-434 25,-434"></polygon>
<text text-anchor="start" x="29.5" y="-442.3" font-family="arial" font-size="14.00">title</text>
<polygon fill="transparent" stroke="black" points="25,-412 25,-434 98,-434 98,-412 25,-412"></polygon>
<text text-anchor="start" x="37" y="-419.8" font-family="arial" font-size="14.00">title</text>
</a>
</g>
jquery overloading method:
$('g.node').click(function (element) {
return false;
});
hope this helps...
Source: stackoverflow.com
Related Query
- d3.js - Uncaught TypeError: Object has no method 'exit'
- d3.js - Uncaught TypeError: Object [object Object] has no method 'getBoundingClientRect'
- Uncaught TypeError: Object #<SVGAnimatedString> has no method 'indexOf' in d3.js and jquery UI mobile when trying to show a popup
- Uncaught TypeError: Object [object Array] has no method 'nodes'
- SvgAnimatedString missing method indexOf
- Getting TypeError when trying to sort data within a d3.csv().then() Promise object using a function outside of the then() method
- Uncaught (in promise) DOMException: The element has no supported sources
- When using D3.js, is there a method to automatically get the closest `key` that has data?
- nvd3 pie chart says Uncaught TypeError: Cannot call method 'map' of undefined
- Uncaught TypeError in D3 Sankey Drag Function
- D3: passing object in style method is not working
- Why is my method not recognizing my object member?
- d3.js - Object doesn't support property or method 'map'
- D3 date parsing: Uncaught TypeError
- D3- understanding the calling object for the d3 call() method
- Javascript JQuery : Object doesn't support property or method 'toLowerCase'
- D3 bar chart uncaught TypeError
- using d3.json method with Json object
- d3.js TypeError null is not and object Geojson
- Uncaught TypeError: Cannot call method 'push' of undefined (d3 force layout)
- SCRIPT438: Object doesn't support property or method 'attr'
- UndefinedError: list object has no element Undefined
- variable with .select method returns null - Uncaught TypeError: Cannot read property 'append' of null
- Javascript for loop Uncaught TypeError from data attributes
- d3.v5.min.js:2 Uncaught TypeError: Cannot convert undefined or null to object
- Getting Uncaught TypeError when attempting to randomly create data array
- style method does not take object
- D3 circle object has no properties
- D3: Attach text to circle such that it has same priority as circle object
- How to draw (hexbin) hexagonal binning using D3 js V6. My object has a string and an integer
More Query from same tag
- How to show and hides nodes when you move the mouse over a node in D3 Javascript
- How to change labels on the control button in NVD3?
- Watching for updates nested within multiple objects passed into angular component
- How to test interactivity of React component using D3 select()?
- appending multiple Bubble cloud charts with d3.js
- d3.js traverse hierarchical data
- d3js - How to use the `this` keyword or what is the alternate?
- line d3.js graph shifting wrongly (to right)
- SVG disappears in firefox on transform
- How do I add density or heat map to this scatter plot?
- Loading external csv file in jsfiddle
- d3v4 checkout chart - making sure the color scheme is correct for the legend and circles
- D3 bar chart axis not scaling correctly
- SVG polygon flickers on resize the parent div (it should preserve the actual shape)
- d3.js x axis specific number of string ticks
- How can I start with all the nodes collapsed in d3js?
- d3 drag behavior: registering, listening, and triggering distinct types in the drag namespace?
- Tooltip in d3 js (Bullet charts)
- Adding a span icon to a D3 bar chart
- Getting unexpected black background after applying style:"stroke: blue; stroke-width: 2px;"
- R shiny AngularJS working
- Can't get d3 tooltips to display name, only number
- Constraining axis labels in d3
- How do I resize SVG images on a map as the zoom level changes?
- First row in D3 DataTable is sorted incorrectly - D3/DC/Crossfilter
- NVD3.js Get Data Point's Screen Position Within SVG Chart
- tooltip displays black block before displaying actual values in IE 10
- Binding some attributes of object to data
- d3 - Drawing svg path slowly, end of lines disappear
- Displaying text over a node in a d3 force-layout graph