dc-js disable selecting slices on click for pie chart

无人久伴 提交于 2019-12-12 20:17:40

问题


I'm looking for bar chart brushOn(false) analog for pie chart.

This code also does not work for me:

  chart.renderlet (_chart) ->
    _chart.selectAll(".pie-slice").on "click", (d) ->
      _chart.filter null

My dc-js version is 2.0


回答1:


According to https://groups.google.com/forum/#!msg/dc-js-user-group/Fxg4vykNSqI/hgdj2PEomHsJ :

pieChart.filter = function() {};

I tried this out at http://jsfiddle.net/djmartin_umich/3chM6/ and it seems to work as desired.



来源:https://stackoverflow.com/questions/24783004/dc-js-disable-selecting-slices-on-click-for-pie-chart

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!