All Questions
397
questions
0
votes
0
answers
18
views
D3 zoom transform retained in subsequent charts
This relates to D3 version 7 and an issue with the zoom transform values being retained in subsequent charts on the same page. I have researched anything I could find online or here but none answers ...
0
votes
1
answer
30
views
Zooming into defs in force-directed graphs
I am currently implementing a d3JS force directed graph for which I have created a marker def that is appended to the links(paths).
The problem is that when I use my zoom function, the markers just ...
0
votes
0
answers
40
views
d3 zoomable circle packaging broken zoom
I changed the d3 zoomable circle packaging code from here
https://codepen.io/akeyz/pen/VwaOXjN
to typescript (using d3 version "^7.8.5", angular 16) and everything works fine except for the ...
1
vote
0
answers
79
views
D3 Tree diagram, Zoom, Pan, fit window for newbies?
Ok, so I tried everithing and I´ve been doing reserch but no luck. I need to implement this 3 key features to my diagram and not even chatGPT could help me with this. I dont know how to code at all ...
0
votes
0
answers
47
views
linesvg data mapping issue in D3.js zoom and pan
I've implemented zoom and pan functionality on chart and I'm experiencing an issue. While Zooming and panning, the x and y scales adjust correctly, and the lines expand and shrink as expected. However,...
0
votes
1
answer
26
views
D3.line.defined Information gets lost when zooming
I am using D3.line to display measurement data of an oscillator over time. The sensors view is blocked from time to time, to samples are missing. These are identified via timestamp.
To show when ...
0
votes
0
answers
20
views
Is this the best way to pan to (x,y) using D3.js?
I have a vector map containing smaller svg figures within it and I'm trying to figure out the best way to zoom+pan to these figures when the user selects one of them.
Since I have the coordinates for ...
0
votes
1
answer
1k
views
How to programmatically zoom d3 and get translate values right
I use d3 zoom (d3 v7.8) to zoom and pan around in an SVG. This works all nicely, but now I want to add a zoom-in and a zoom-out button.
Now I could manually change the transform attribute of the SVG ...
1
vote
0
answers
53
views
Automatic zoom on a specific node in a mapping with d3.js
I have a mapping with d3 nodes (they correspond to actors). I made a search bar, that allows me to search for actors. When I select one actor via the search bar, it highlights in the mapping (with a ...
0
votes
0
answers
70
views
Zoomable Treemap using d3.js v4 doesn't work
I am trying to make zoomable treemap using d3.js, the treemap should zoom in or out when a user uses mousewheel.
I have a json file which contains the data. I am able to draw the treemap but I am not ...
0
votes
1
answer
159
views
Cannot pan SVG when the cursor is on the svg itself in D3.js
I've made a simple Zoom & Pan notebook in ObservableHQ.com with D3.js I have two questions:
https://observablehq.com/d/c63434913a56fbb2
If the curson is on the black square (i.e. SVG), it dosen't ...
0
votes
1
answer
160
views
D3 chart zooms the plot but not the axis - callback.apply is not a function
I've got a chart based on this tutorial
It's working very all apart from that when I zoom, the plot works but not the x-axis.
The problem lies on my zoom function
const zoomed = (event) => {
...
0
votes
1
answer
114
views
How to zoom in a graph in JavaScript D3
I am trying to get Zoom to work, I am new to D3 and I find it very abstract and not intuitive. I recently finished a beginners course in JavaScript but D3 feels like a completely new language.
I found ...
0
votes
1
answer
655
views
D3 V7 Bar chart snapping both on zoom and brush behaivours
I'm trying to implements booth zoom and brush snapping so the selection area set rather by zoom or a brush behaivour coincides rigidly with the bars boundaries. Please use illustration as a reference.
...
0
votes
0
answers
228
views
Why does d3.zoom not work correctly when using it with geo.json map data?
Here is my map svg:
useEffect(() => {
const svg = select(svgRef.current)
const { width, height } = wrapperRef.current.getBoundingClientRect();
// projects geo-coordinates on a 2D plane
const ...