问题
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