有 D3.JS 经验的开发人员能否指出实践中哪些特定浏览器和浏览器版本级别最容易支持 D3.JS 库?
是否有已知与特定浏览器和浏览器版本级别不兼容的 D3.JS“组件”列表?
D3.JS 网站建议:
Browser Support
D3 supports so-called “modern” browsers, which generally means everything except IE8 and below. D3 is tested against Firefox, Chrome (Chromium), Safari (WebKit), Opera and IE9. Parts of D3 may work in older browsers, as the core D3 library has minimal requirements: JavaScript and the W3C DOM API. For IE8, the compatibility library Aight is recommended. D3 uses the Selectors API Level 1, but you can preload Sizzle for compatibility. You'll need a modern browser to use SVG and CSS3 Transitions. D3 is not a compatibility layer, so if your browser doesn't support standards, you're out of luck. Sorry!"
但是,我希望得到更具体的答案。
最佳答案
我要在这里走出困境,将 SVG 支持等同于 D3 支持,因为(在我看来)这是库中最有用的部分。
考虑到这一点,此链接应该为您提供支持它的确切浏览器版本: http://caniuse.com/svg
这与您从 D3 站点粘贴的内容相符:基本上除了 IE 之外的每个主要浏览器供应商都对许多版本提供 SVG 支持。
您的问题是“在实践中”,意思是 SVG。是的,我知道有一些将 D3 与 DOM 的非 SVG 部分结合使用的示例,但是 gallery 中的绝大多数示例是基于 SVG 的。
关于browser - D3.JS 浏览器支持,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33328159/