问题
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