score:2
Accepted answer
the jsfiddle you point to in your question has this...
vis.append('svg:rect')
.attr('width', w)
.attr('height', h)
.attr('fill', 'white');
this makes sure there's always something drawn no matter where you are. you need to adjust your code accordingly. you can make it opacity 0 if you don't like white and then you won't see it, but it does need to be there.
Source: stackoverflow.com
Related Query
- d3.js zooming only works when cursor over pixels of graph
- Zooming works only when hovering on the dots in scatterplot
- Why does d3.js v3 break my force graph when implementing zooming when v2 doesn't?
- how to display name of node when mouse over on node in collapsible tree graph
- d3 line function works only when I include a dummy parameter in the line function. why?
- d3.v4.js Line Graph Interactive Legend - Only works for first line
- d3 tree graph zooming is only on node
- d3-zoom breaks when cursor is over an inner svg element
- D3: Multi-line graph is slightly off compared to axises when zooming in
- d3.js zoom propagation in v4: pinch zooming a map when one finger is over a child element
- How to fix graph so it doesn't write over itself when resizing
- D3 Chloropleth zoom works when only with states, but breaks when I draw it with counties
- Change in nvd3 graph only when screen size is adjusted
- d3.js - How can I set the cursor to hand when mouseover these elements on SVG container?
- D3 force directed graph with drag and drop support to make selected node position fixed when dropped
- semantic zooming of the force directed graph in d3
- Display only whole values along y axis in d3.js when range is 0-1 or 0-2
- Placing a circle over a sparkline when the user changes the ordering of the data
- D3 keep line width same when zooming
- How to access "previous sibling" of `this` when iterating over a selection?
- How to change speed of translate and scale when zooming in and out in D3 (using zoom.on & d3.event.translate, d3.event.zoom)?
- Limiting domain when zooming or panning in D3.js
- nvd3.js-Line Chart with View Finder: rotate axis labels and show line values when mouse over
- How to show and hides nodes when you move the mouse over a node in D3 Javascript
- How to show a tooltip with value when mouseover a svg line graph using d3.js?
- SVG circles don't get repositioned when zooming leaflet map
- Zooming and brushing in d3 force directed graph
- d3js: zooming when there are two y axes
- D3 graph (with links) over google maps
- D3 Canvas graph zooming and panning slow redraw in Webview
More Query from same tag
- Binding an event during an update() transition
- D3.js - browser freezing - too many elements on updating with time?
- Setting a small image on map on some coordinates using D3.js and GeoJson
- All tickvalues not getting displayed on X axis
- D3 stuck in queue
- Disable brush on range chart before selecting a scale from the dropdown/on page load(dc.js,d3.js)
- dynamic tooltip for multiline in d3.js
- What attributes does d3 transition change?
- calculating the arc/point in d3 path
- Example of a working codebase with zoomable d3 circle packing
- d3, line chart, Error: <path> attribute d: Expected number
- if statement to slide between data sets d3.js
- Performance issue using dc.js
- Custom number of axis ticks D3
- How to update a bar chart with accompanying text in d3?
- Example for animating a scatter plot in d3js
- Cannot find D3.js memory leak
- How to synchronize animation of path and area?
- dc.js: extending line and area to end of chart
- Force.drag().on returns undefined
- dc.js animated selection along x-axis
- How can i change the color per section in this line chart?
- D3.symbol in the corner of the screen. I would like to move it
- d3: Avoid unchanged nodes?
- How to load a csv file from static in django into javascript function
- How can I get only elements with odd ids from a D3 selection?
- call function after d3 transition
- d3.js selecting key with a space in the name
- Running time of finding nearest neighbour using d3 voronoi
- How to create a tree in NetworkX and display it in D3.js