dc.js与d3.js的v4的兼容性 [英] dc.js compatibility with v4 of d3.js

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

问题描述

d3.js 版本4.x(不向后兼容)于6月16日发布。



dc.js 的bower.json包括:

 依赖项:{
d3:3.x,
crossfilter2:〜1.3
}

它明确要求 d3.js 的v3(不高于)。



dc.js 目前与 d3.js 的版本4.x兼容?如果没有,这是否计划?

解决方案

这绝对兼容。 d3 v4已断开api更改。



就计划而言,在dc.js'上有一个热烈的讨论 github acount


那么计划是什么呢?使用@jfsiii suggetion完成dc v2
使用d3 v3然后使用d3 v4创建dc v3?将升级到d3
v4保证几乎完全重写?







< >

gordonwoodhull :这样的东西。 ...我怀疑这是一个重写,因为有很多细节的代码现在的方式。当然,如果你想从头开始编写dc.js,没有人阻止你,但我宁愿看到这个repo进化...许多图表库已经死了,试图一次更改一切。



Version 4.x of d3.js, which is not backward compatible, came out end of June16.

The bower.json for dc.js includes:

"dependencies": {
  "d3": "3.x",
  "crossfilter2": "~1.3"
}

which explicitly requires v3 (not higher) of d3.js.

Is dc.js currently compatibility with version 4.x of d3.js? If not, is this planned?

解决方案

It's definitely not compatible. d3 v4 has breaking api changes.

As far as plans go, there's a lively discussion about this on dc.js' github acount:

So what is the plan then? Use @jfsiii suggetion of finishing off dc v2 using d3 v3 and then create dc v3 using d3 v4? Would upgrading to d3 v4 warrant an almost complete re-write?


gordonwoodhull: Something like that. ... I doubt it's a rewrite as there are a lot of subtle details to the way the code is now. Of course if you want to write dc.js from scratch, no one's stopping you, but I'd rather see this repo evolve... Many chart libraries have died from trying to change everything at once.

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

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