I have a project that uses the latest version of d3 (v6), I include the api as follows in my index.html:
<script src="scripts/d3.js"></script>
This version of d3 does not support IE, I get a console error as the ECMA version of Javascript in IE does not support => for example.
This is fine for me as I test if window.d3
exists and if not then I show something else instead of my d3 chart.
But I would like to not have this console error.
So how do I only include d3.js if the browser is not IE?
Thanks