D3.JS 浏览器支持 [英] D3.JS Browser Support

查看:24
本文介绍了D3.JS 浏览器支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有 D3.JS 经验的开发者能否指出在实践中哪些特定浏览器和浏览器版本级别最容易支持 D3.JS 库?

Could a developer with experience of D3.JS indicate what specific browsers and browser version levels in practice most readily support the D3.JS library ?

是否有已知与特定浏览器和浏览器版本级别不兼容的 D3.JS组件"列表?

Is there a list of D3.JS 'components' which are known not to be compatible with specific browsers and browser version levels?

D3.JS 网站建议:

The D3.JS website suggests :

D3 支持所谓的现代"浏览器,一般指除 IE8 及以下的所有浏览器.D3 针对 Firefox、Chrome (Chromium)、Safari (WebKit)、Opera 和 IE9 进行了测试.D3 的一部分可能在旧浏览器中工作,因为核心 D3 库的要求最低:JavaScript 和 W3C DOM API.对于 IE8,推荐使用兼容库 Aight.D3 使用 Selectors API Level 1,但您可以预加载 Sizzle 以实现兼容性.您需要一个现代浏览器才能使用 SVG 和 CSS3 过渡.D3 不是兼容层,因此如果您的浏览器不支持标准,那您就不走运了.对不起!"

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!"

但是,我希望得到更具体的答案.

However, I was hoping for a more specific answer.

推荐答案

我打算在这里尝试一下,将 SVG 支持等同于 D3 支持,因为(在我看来)这是库中最有用的部分.

I'm going to go out on a limb here and equate SVG support with D3 support, since (in my opinion) that's the most useful part of the library.

考虑到这一点,此链接应为您提供支持它的确切浏览器版本:http://caniuse.com/svg

With that in mind, this link should give you the exact browser versions that support it: http://caniuse.com/svg

这与您从 D3 站点粘贴的内容相符:基本上,除 IE 之外的所有主要浏览器供应商都对许多版本提供了 SVG 支持.

And this matches what you pasted from the D3 site: basically every major browser vendor except IE has had SVG support for many many versions.

您的问题是在实践中",这意味着 SVG.是的,我知道有一些将 D3 与 DOM 的非 SVG 部分一起使用的示例,但是 图库 是基于 SVG 的.

Your question says "in practice" and that means SVG. Yes, I know there are some samples of using D3 with the non-SVG parts of the DOM, but the vast majority of the examples in the gallery are SVG-based.

这篇关于D3.JS 浏览器支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆