d3 v6 is not supported in IE 11
pankajupadhyay29 opened this issue · comments
Pankaj Upadhyay commented
D3 V6 is not working in IE11 because of arrow functions, it failed with syntax error as below
To reproduce this just create a simple example page like
<html>
<head>
<script src="https://d3js.org/d3.v6.js"></script>
<script>
function onLoad() {
console.log(d3);
d3.select("body").style("background-color", "black");
d3.select("body").style("color", "white");
}
</script>
</head>
<body onload="onLoad()">
Hello
</body>
</html>
Gordon Woodhull commented
This is intentional. d3@6 uses ES2015
You need to stick with v5 or transpile if you still need to support IE, which is not supported by Microsoft anymore.