Internet Explorer的nvd3.js渲染解决方案 [英] nvd3.js rendering solution for Internet Explorer

查看:188
本文介绍了Internet Explorer的nvd3.js渲染解决方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在考虑实现一些东西,以帮助显示在互联网浏览器中呈现的SVG图形(用nvd3.js生成)

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

这种情况的复杂性在于我不是使用d3.js它有一些支持raphael.js(通过D34raphael)。 Raphael.js基本上采用svg元素,并在其包装器函数中绘制围绕它们的路径以生成vml或svg。有些人报告能够做所有的d3逻辑,然后在拉斐尔语句中包装实际的svg绘图。

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.

但是NVD3.js生成svg元素在代码,而不是一个地方。

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

我正在寻找解决方案,涉及到运行ajax调用我的php服务器,将读取渲染的html页面,提取渲染的nvd3 svg,并在其中创建一个图像地点。我不知道这是多么实用,在我走下那个兔子洞。

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似乎不工作,Chrome Frame不是真的选项,所以我不知道其他人使用。任何洞察力赞赏

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

推荐答案

尝试使用r2d3。

https://github.com/mhemesath/r2d3

这篇关于Internet Explorer的nvd3.js渲染解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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