我正在寻找饼图的条形图 brushOn(false) 模拟。
此代码也不适合我:
chart.renderlet (_chart) ->
_chart.selectAll(".pie-slice").on "click", (d) ->
_chart.filter null
我的dc-js版本是2.0
最佳答案
根据 https://groups.google.com/forum/#!msg/dc-js-user-group/Fxg4vykNSqI/hgdj2PEomHsJ :
pieChart.filter = function() {};
我在 http://jsfiddle.net/djmartin_umich/3chM6/ 试过了这个它似乎按预期工作。
关于javascript - dc-js 禁止在单击饼图时选择切片,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24783004/