Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

D3.JS Browser Support

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.

like image 350
user1836288 Avatar asked Mar 01 '13 13:03

user1836288


People also ask

Is D3 js still used?

The JavaScript ecosystem has completely changed during this time, in terms of libraries, best practices and even language features. Nevertheless, D3 is still here. And it's more popular than ever.

What Cannot you use D3 for?

D3 cannot easily conceal original data. If you're using data that you don't want shared, it can be challenging to use D3. D3 doesn't generate predetermined visualizations for you. It can be time-inefficient to generate D3 visualizations where a quick chart from an alternative source would perform beautifully.

Where can I run D3 JS?

Copy the d3. min. js file and paste it into your project's root folder or any other folder, where you want to keep all the library files.

Is D3 js free for commercial use?

D3 is released under a BSD license, so you may use, modify, and adapt the code for noncommercial or commercial use at no cost. D3's official home on the Web is d3js.org.


1 Answers

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.

like image 154
explunit Avatar answered Oct 01 '22 15:10

explunit