13

Is there any way to make D3 compatible with IE8? Many of the posts here and in the documentation suggested using aight. https://github.com/shawnbot/aight/blob/master/aight.js

However, I added the lines/file mentioned to my html, but this still doesn't work in ie8. http://matthewpiatetsky.com/jsdemo.html

Does anyone know if there are any additional steps I need to take?

Perhaps use r2d3? Not sure how to do that, but will try to figure out

Mike Causer
  • 8,196
  • 2
  • 43
  • 63
LemonMan
  • 2,963
  • 8
  • 24
  • 34

3 Answers3

12

D3 uses SVGs to graph and since IE8 does not support SVG it won't work.I would give R2D3 a try, it shims SVG via Raphael to be compatible with D3. There are some limitations as some functionality won't be available. Look at https://github.com/mhemesath/r2d3/ for more details

ama2
  • 2,611
  • 3
  • 20
  • 28
  • yeah that's what I figured was the problem. I'm not sure how r2d3 fixes it though because right now if i just put in the required lines/files for r2d3 it still doesn't work for ie8 as you can see http://matthewpiatetsky.com/jsdemo.html – LemonMan Jun 19 '13 at 23:31
  • i see now it looks like i can't just include the js file, but need to use the makefile? will try to figure that out – LemonMan Jun 19 '13 at 23:36
  • yeah i think i have the full file now but i don't think it works – LemonMan Jun 20 '13 at 00:17
  • 1
    d3 doesn't "use" SVG, it's just the recommended graphic system. You can definitely use d3 without SVG and simple DOM elements, and still get pretty far with it. – Louis Chatriot Aug 26 '14 at 08:21
7

aight.js worked for me, just need to take care importing it before d3.js

Spartan
  • 71
  • 1
  • 3
3

Many good demos of R2D3, and Aight demos now exist.

I think that re-coding your question to demo it in one of these libraries is out-of-scope of SE, but hope you find the links useful.

New Alexandria
  • 6,951
  • 4
  • 57
  • 77