score:0
I got it working in the IE in the following way:
<svg id="yourid" width="100%" height="100%" viewBox="750 0 2500 2500">
The style was appended with a js-script. Here a very very old version of one of my projects: link.
var svg = d3.select("#someid")
.append("svg")
.attr("width", "100%")
.attr("height", "100%")
.attr("id", "yourid")
.attr("viewBox", "750 0 2500 2500");
score:0
Try this. For me it fixed it for IE and Chrome:
<svg version="1.1" width="1936px" height="1056px" viewBox="0 0 1936 1056" >
score:1
Instead of providing sometimes unknows widths and heights we can use Viewport percentage as:
style='width:100vw; height:100vh;'
score:6
IE has a bug where it doesn't scale the SVG properly if you don't provide both the width and height.
To fix that issue, you can use the <canvas>
trick.
https://jsfiddle.net/4p73n364/12/
I'm not a d3 user, so I can't help you with the tiny labels issue.
Source: stackoverflow.com
Related Query
- IE11 does not accept SVG height and width when using D3
- "Property does not exist on type {}" error when using anonymous function with D3 SVG Symbol
- Distribute nodes evenly around central node using a relative SVG width and height
- how to adjust width and height when i click the rect in multilevel treeemap using d3.js?
- d3.js brush() inherits incorrect height and width From svg parent using viewBox
- Auto width and height for SVG image
- Making SVG container 100% width and height of parent container in D3 v4 (instead of by pixels)
- Edge does not handle scaling and text-anchor:middle correctly in svg
- Renderer2 does not render SVG element while using d3 js - Angular 4
- How to maintain the SVG marker width and height ?
- How can I get the natural width and height of an svg image element?
- viewBox attribute with svg height and width attributes set
- D3.js Right click opens popup but does not affect the source svg when pop up closed
- How to get the width and height of an image? ( getBBox() size of SVG return 0 )
- D3 Typescript error when using d3.mouse: 'this' implicitly has type 'any' because it does not have a type annotation
- svg rendering order of lines and shapes when using d3
- d3 svg zoom does not work when neighbouring element exists
- Append external svg using d3 and Webpack in IE11
- Adding image to svg container using d3 not working on FF and Safari
- Why animated d3 svg line is not synchronized with the axis shift in IE9 but synchronized in IE11 and Chrome?
- Dynamically set the width and height of SVG based on data
- How to show the unhighlighted/ not selected data points on scatter plots when using brush/group in dc.js? And is multiple brushes possible in dc.js
- D3 SVG with finite height and width
- height,width and font not consistent when converting svg to png
- Change xlink:href link of svg image when image does not exits in D3js?
- SVG not showing when using pattern to mask an image
- Why does D3 not insert elements inside the selected element, when using data().enter()?
- .on("drag", function()) and .on("contextmenu", function()) does not work when used on the same code
- Change height and width of the path tag in SVG Image
- how to use getElementById with getBBox to determine the svg width and height
More Query from same tag
- D3.js dynamically scaled and position image in node
- D3.js - Updating Bar Chart Data with buttons
- D3.js tree layout - Want to get count of descendant
- D3: passing object in style method is not working
- How to add d3 (javascript) to a vaadin application?
- Dimple Filter for X Value
- group by object attributes in array
- how to show D3.js HTML graph in Github
- transitioning lines in d3.js
- How do I place a D3 tooltip inside a div?
- Google Chart Issue - Only the Wireframe is Visible
- How to visualize the attention vector with a text heatmap?
- How to update and insert into databse using PHP when array in Javascript is updated?
- How to add a force drag event in D3 and make the node stay where i leave it?
- D3 how to pass Promise.all data further?
- Three column layout breaks on adding d3js chart
- Focus+Context via Brushing for dual scaled zoomed chart in d3
- Dagre-D3 graph. Can egde path be customized?
- Transition font-size on Chrome after zoom in
- how to correctly place the text labels in d3.js?
- Data Structures in D3
- d3.js filter null values in nested data
- how to animate text anchor in D3
- SVG not showing when using pattern to mask an image
- Putting custom labels on D3 X axis graph
- returning an array equally spaced between two given times with a given variable x
- How to set color of node based on data value in D3JS
- Storing data values in a JSON file
- using variable to parse data with D3js when reading in from csv file
- Transit / Duration Errors in d3js and Meteor