D3 has the touches event and using this you can get touch position coordinates from inside your event handler, but this doesn't give you any special handling for or help identify long press and doubletap. You can add support for long press and double tap yourself. For long press, have a look at this example:
If you're using jQuery, there are doubletap plugins like this one:
Unfortunately, there is no double tap in d3, so as suggested before, you got to work with touchstart. Here is how
- Is there a tap and double tap event in d3.js force directed graph
- Both single and double click on a node in d3 force directed graph
- Highlight selected node, its links, and its children in a D3 force directed graph
- Add text label to d3 node in Force directed Graph and resize on hover
- D3 force directed graph with drag and drop support to make selected node position fixed when dropped
- D3 highlight selected node, and its links to parent and ancestors in a force directed graph
- Zooming and brushing in d3 force directed graph
- How to calculate in-degree, out-degree and weigted degree for force directed graph (d3.js)?
- Freezing force directed network graph and make draggable in D3
- How do I make a d3.js force directed graph interactive using ajax and python?
- D3v4 force directed graph - localStorage disconnects links and nodes
- Updating nodes and links with labels in d3 force directed network graph is not removing the nodes properly
- D3js - Force directed graph - advanced highlighting of neigbour nodes and links, is it possible?
- how to highlight(change color) of all connected(neighbours) nodes and links in a d3 force directed graph
- Highlight a node and its neighbour node in force directed graph
- How to show edges in force directed graph using d3.js and Angular?
- How can I use crossfilter to filter graph data and visualize them on a force directed graph?
- D3 force directed graph drag and zoom functions not working
- How to zoom and translate to center of force directed graph in D3
- How can I append text to and render that text from a line in a force directed graph in D3.js?
- d3.js V3 force directed graph and unlinked nodes
- Force Directed Graph with expand and collapse (d3.js)
- force directed graph - define the color of a node, if the node is source and target at the same time
- force directed graph filter nodes and links
- date time parsing and filtering for a d3.js force directed graph
- how to display the node attributes like person's name photo and address in a force directed graph
- D3 Force Directed Graph click event not working
- how to implement zoom in d3 graph of force directed layout and position the nodes
- Updating links on a force directed graph from dynamic json data
- Simple graph of nodes and links without using force layout
More Query from same tag
- D3.js - X-axis not appearing on Scatterplot
- d3 js not working well
- How to update d3 graphics if I load from external data?
- duplicating the whole svg element using d3.js
- d3.scale.linear() not working
- d3 drawing polygons from a csv
- Including major minor ticks
- x-axis label is cropped when SVG is converted to image D3.js
- D3: am I using scale.invert() wrong?
- Transition selected textpath from multiple textpaths on mouseover in D3.js v5
- Split an SVG path lengthwise into multiple colours
- Eclipse Showing error when adding D3.js to script folder in the WebContent
- Making d3.js compatible with IE8/IE9
- C3.js Legend Labels using JSON data
- D3 JS make polygon on click
- how to filter a JSON file? (NYC Census Tracts)
- how to convert scatter chart into line chart in d3 version 3
- How to get SVG child element position relative to SVG position on page, D3.js?
- D3 quick chained transition inconsistency
- D3.js Mouse events between different SVG groups
- Create d3 map with geo-albers-usa-territories projection
- Display large number on y-axis in python-nvd3
- Transition only on the y value of a line point?
- PHP D3 combination for visualizing data
- How to show only limited number of records in box plot dc.js
- ng-repeat not updating after change in nestled data
- d3.js: append a span with glyphicon class
- D3js: How to load CSV data and convert it into nvd3.js object?
- Short-circuiting events in d3?
- Browser hangs when parsing dates