cglowe
12-20-2024Cloud Apps
Disable single slice of pie chart
On a pie chart, where the 'Others' slice is enabled, is there a way disable the click action for only the 'Others' slice? We have some instances where the Others slice contains several hundred members and can crash the page. Ideally, we'd like the user to still be able to click other slices to filter their dashboard, but not be able to click the Others slice.
Hi cglowe ,
Here is a small script that makes the "Others" slice behave similarly to the other slices. This means that when you click on it, it won't display the underlying items. Instead, it will apply a dashboard filter for those items. Is this what you're looking for?
widget.on('processresult', function(w, args){ args.result.drilldown = undefined })
result:
Let me know if you need any more adjustments!
-Hari