You can get the current zoom level through
zoom.scale(). This you can then use to compute the scale factor for the marker
paths such that they remain the same size. All you then need to do is apply this scale in a
transform attribute for those
- How can I get a SVG path shape to scale on zoom in D3?
- D3 - How to get correct scale and translate origin after manual zoom and pan to country path
- How can I scale my map to fit my svg size with d3 and geojson path data
- How can I get this svg circle to appear above my d3 path and not below?
- How can I get custom SVG paths to zoom correctly in D3?
- How can I set the each line color or width in SVG path
- How can I animate infinite marker movement down an SVG path without very high CPU usage?
- How do I rotate or scale (transform) an SVG path relative to its center point?
- How can I get the natural width and height of an svg image element?
- How to get projected path definition strings (not SVG elements) from a GeoJSON dataset with D3?
- svg - get path coordinates of overlapping shape areas
- D3 renders SVG. How can I get that SVG programmatically?
- How to get SVG path data of TopoJSON feature without adding it to the DOM?
- How can I get the dom svg element from d3 node data?
- How can I scale an SVG so that the content drawn in it to fit the container size?
- how can i get selected path index in group using D3 control?
- D3: How can I cause the stroke of an SVG path generated with D3 to be clipped to the interior of the same path?
- How to get the zoom level of an svg image using d3
- How can i get the id of a polygon in an SVG file?
- How can I remove or replace SVG content?
- How to get coordinates of an svg element?
- How do I get the width of an svg element using d3js?
- d3.js - How can I set the cursor to hand when mouseover these elements on SVG container?
- How can I get the D3.js axis ticks and positions as an array?
- How to select a d3 svg path with a particular ID
- MultiBar chart with nvd3 / d3 only shows labels for every other tick on the x-axis. How can I get them all to show up?
- In d3, how to get the interpolated line data from a SVG line?
- How to update an svg path with d3.js
- How can I dynamically resize an SVG rect based on text width?
- D3js: How do I clear the zoom scale set by the d3.zoom event?
More Query from same tag
- Replace the last bit of jQuery with d3.js - a selection with css-attribute change
- NVD3: How to get values from tooltip or legend instead of labels?
- How to make curve links and add tooltip on links at the same time?
- D3-request retrieval of a google spreadsheet csv/json file fails
- Using .setAttribute() to Resize SVG not Working
- Set up D3 with react-create-app
- Drag & zoom D3 V4 charts with Angular 2
- D3 Bar chart. How to set custom x and y axis based on JSON data?
- adding objects into an existing object
- Does d3.js support dynamic Sunbursts
- D3.js roll up nested data
- d3.js custom colors weird behavior - gradient problems
- Formatting x-axis on d3js v5 doesn't work
- dashing d3js with x,y,x1,y1,x2,y2,z
- Error: value of <"rect"> = "NaN", Error:Value of <"text"> = "Nan"
- Unable to select primitives with certain class in d3js
- How to use D3 in Node.js properly?
- force directed graph - define the color of a node, if the node is source and target at the same time
- Rotating Text on a scatter plot
- Error parsing date for X axis
- D3: How to pull JSON from Github API
- angular directive d3 stuck when hidden on mobile
- d3-transition attrTween, styleTween methods are not getting triggered in d3 version 4
- How to change point size using geojson file in D3
- Updating D3 data doesn't remove old data from faux-3d example
- import js external file in angular 6
- d3.js axis add tick value
- Turn off clipping in a d3 projection
- In created:, my method doesn't work perfectly