nvd3.js rendering solution for Internet Explorer

假装没事ソ 提交于 2019-12-01 21:14:54

问题


I am considering implementing something to help display the rendered SVG graph (generated with nvd3.js) in internet explorer

The complications of this are that I'm not using d3.js which has some support for raphael.js (via D34raphael). Raphael.js basically takes svg elements and draws path around them in its wrapper functions to generate vml or svg. Some people report being able to do all the d3 logic and then casing the actual svg drawing in a raphael statement.

But NVD3.js generates svg elements in many places around the code, instead of one place.

I was looking at solutions which involve running an ajax call to my php server which will read the rendered html page, extract the rendered nvd3 svg, and create an image in its place. I'm not sure how practical that is yet, before I go down that rabbit hole.

SVGweb doesn't seem to really work, Chrome Frame isn't really an option, so I'm not sure what other people use. Any insight is appreciated


回答1:


Try using r2d3. Its a drop in library for IE that uses the exact same syntax as D3.

https://github.com/mhemesath/r2d3



来源:https://stackoverflow.com/questions/14569763/nvd3-js-rendering-solution-for-internet-explorer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!