D3.js vs Raphael.js

前端 未结 4 1145
悲哀的现实
悲哀的现实 2021-01-29 21:40

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

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-29 22:06

    Raphael is not built on 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.

    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.

提交回复
热议问题