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

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

问题描述

有D3.JS经验的开发人员能否指出在实践中,什么特定的浏览器和浏览器版本水平最容易支持D3.JS库?



是否有列表



D3.JS网站建议:


浏览器支持



D3支持所谓的现代浏览器,通常意味着IE8及以下的所有内容。 D3针对Firefox,Chrome(Chromium),Safari(WebKit),Opera和IE9进行测试。 D3的部分可能在旧浏览器中工作,因为核心D3库具有最低要求:JavaScript和W3C DOM API。对于IE8,建议使用兼容库Aight。 D3使用选择器API级别1,但是您可以预加载Sizzle的兼容性。您将需要一个新的浏览器来使用SVG和CSS3过渡。 D3不是兼容层,所以如果你的浏览器不支持标准,你运气不好。抱歉!


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



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



这与您从D3网站粘贴的内容相符:除了IE之外,基本上每个主要的浏览器厂商都拥有SVG支持许多版本。



您的问题说在实践中,这意味着SVG。是的,我知道有一些使用D3的非SVG部分的样本DOM,但图库中的绝大多数示例都是基于SVG的。


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 ?

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

The D3.JS website suggests :

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.

解决方案

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.

With that in mind, this link should give you the exact browser versions that support it: http://caniuse.com/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.

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天全站免登陆