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

查看:255
本文介绍了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使用SVGs图形,因为IE8不支持SVG它不会工作。我会给R2D3一个尝试,它垫片SVG通过Raphael与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天全站免登陆