D3.js对Raphael.js [英] D3.js vs Raphael.js

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

问题描述

我对d3和Raphael都很着迷。我理解Raphael是建立在D3之上的,它是跨浏览器兼容,但我不知道哪一个更适合于什么场景。有人可以请一些光吗?我立即使用case可能使用SIMILE时间线并将其与状态图(我打算使用d3 / Raphael)集成。谢谢!

I'm fascinated by both d3 and Raphael. I understand that Raphael is built on top of D3 and that it is cross-browser compatible, but I'm not sure which one is better suited for what scenarios. Can somebody please shed some light? My immediate use-case is potentially using the SIMILE timeline and integrating it with a state diagram (for which I intend to use d3/Raphael). Thanks!

推荐答案

Raphael不是建在D3上。

Raphael is not built on D3.

Raphael将帮助你绘制元素。 D3更全面,将帮助你绑定数据到元素。所以我想说D3更强大。 此论坛讨论讨论使用D3呈现SIMILE时间轴,他们引用< a href =http://bl.ocks.org/bunkat/1962173>这个项目在D3中实现了时间轴。所以乍一看,D3是你的答案。

Raphael will help you draw elements. D3 is more comprehensive and will help you bind data to elements. So I'd say D3 is more powerful. This forum discussion Discusses presenting a SIMILE timeline using D3, they refer to this project which implements a timeline in D3. So at first glance, D3 is your answer.

但是,鉴于没有一个小部件D3处理你的SIMILE时间轴,Raphael或D3可能是一个不错的选择。也就是说,除了D3不能很好地与互联网浏览器的早期版本,如解释在这篇文章。所以如果你需要支持早期版本的IE,你最好选择Raphael。

However, given that there doesn't seem to be a widget for D3 which handles the SIMILE timeline for you, either Raphael or D3 could be a good choice. That is, except for the fact that D3 doesn't work well with internet explorer's earlier versions, as explained in this article. So if you need to support earlier versions of IE, you're better off with Raphael.

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

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