browser - D3.JS 浏览器支持

标签 browser cross-browser d3.js

有 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/

相关文章:

javascript - 如何使用 D3 控件获取组中选定的路径索引?

javascript - e.parentNode.parentNode.childNodes[i].innerText 的 Jquery 等效/浏览器兼容性;

html - 禁用文本区域和文本输入,同时保持一致的跨浏览器样式

javascript - 为什么悬停状态行为被删除?

javascript - Safari 在缩小窗口时将一个奇怪的对象插入到 DOM 中,这会扰乱 jQuery 的 position() 结果

printing - @media 打印不适用于谷歌

d3.js - nvD3的新功能-如何使unix时间戳在x轴上显示为日期?

javascript - Toggle 不使用新浏览器

javascript - 为什么 array.push 有时比 array[n] = value 快?

html - 如何让 Firefox 在文件更改时自动刷新?