Reputation: 7219
According to caniuse http://caniuse.com/#search=svg
there is full support for SVG except for IE 7,8, but when I view in Chrome and Firefox, many examples don't work
For example both azimuthal and albers in the examples found here https://github.com/mbostock/d3/tree/master/examples
Both work fine in Safari
My browser versions
Chrome Version 21.0.1180.82
Firefox 14.0.1
Anyone care to comment as to why these examples aren't working?
Upvotes: 1
Views: 1597
Reputation: 51839
As @Josh commented, the most likely reason is that you are viewing these examples out of your local file system, rather than using a local web server as described on the Wiki.
When running the examples locally, note that your browser may enforce strict permissions for reading files out of the local file system. Some examples use AJAX which works differently via HTTP instead of local files. To view the examples locally, you must have a local web server. Any web server will work; for example you can run Python's built-in server:
python -m SimpleHTTPServer 8888 &
Once this is running, go to
http://localhost:8888/examples/
.
Upvotes: 2