Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

dc-js disable selecting slices on click for pie chart

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

like image 958
rootatdarkstar Avatar asked Feb 02 '26 05:02

rootatdarkstar


1 Answers

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.

like image 86
DJ Martin Avatar answered Feb 04 '26 17:02

DJ Martin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!