D3 IE8 Compatibility?

后端 未结 3 1282
花落未央
花落未央 2020-12-05 19:58

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.j

相关标签:
3条回答
  • 2020-12-05 20:24

    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

    0 讨论(0)
  • 2020-12-05 20:28

    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.

    0 讨论(0)
  • 2020-12-05 20:39

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

    0 讨论(0)
提交回复
热议问题