D3 IE8 兼容性? [英] D3 IE8 Compatibility?

查看:36
本文介绍了D3 IE8 兼容性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法让D3兼容IE8?此处和文档中的许多帖子都建议使用 aight.https://github.com/shawnbot/aight/blob/master/aight.js

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

但是,我将提到的行/文件添加到我的 html 中,但这在 ie8 中仍然不起作用.http://matthewpiatetsky.com/jsdemo.html

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?

也许使用 r2d3?不知道怎么做,但会想办法

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

推荐答案

D3 使用 SVG 来绘制图形,由于 IE8 不支持 SVG,所以它不会工作.我想试试 R2D3,它通过 Raphael 填充 SVG 以兼容与 D3.由于某些功能将不可用,因此存在一些限制.查看https://github.com/mhemesath/r2d3/了解更多详情

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

这篇关于D3 IE8 兼容性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆