cancel
Showing results for 
Search instead for 
Did you mean: 

Turning off click to filter on Widget

Kade
7 - Data Storage
7 - Data Storage

Hello everyone,

Is it possible to disable the functionality that allows users to click on the legend in the widget to filter data?

Currently, when a legend is clicked to filter out a category, it disrupts the y-axis of the stacked bar chart, and the issue persists even when the legend is clicked again to restore the data.

Setting a maximum value for the y-axis isn't effective because all four values change dynamically based on the dashboard filters.

Thank you.

Thank you.

Kade_0-1723756617233.png

 

Kade_2-1723756670990.png

 

1 ACCEPTED SOLUTION

AssafHanina
Sisense Team Member
Sisense Team Member

Hey @Kade 

Please try to use the following widget script to disable the Clickable Legend. 
the Script disable the pointer events such as click. 

widget.on('ready', function(se, ev){
// Disable pointer events to make the legend unclickable
$('.highcharts-legend').css('pointer-events', 'none');
});

Best Regards 

Assaf

View solution in original post

4 REPLIES 4

DRay
Community Team Leader
Community Team Leader

Hi @Kade,

Thank you for reaching out. Have you talked with Support about this issue? It seems like it might be a bug that needs to be fixed, or is fixed in a newer version.

David Raynor (DRay)

gwolfe
10 - ETL
10 - ETL

@DRay This isn't a Sisense bug, but a bug created by the script we have that is hiding other values. To bypass this we want a script that will ultimately disable any type of filtering this widget when it is clicked on. When the legend or the view is clicked we don't want anything to happen. 

Does anyone have a script for that?

AssafHanina
Sisense Team Member
Sisense Team Member

Hey @Kade 

Please try to use the following widget script to disable the Clickable Legend. 
the Script disable the pointer events such as click. 

widget.on('ready', function(se, ev){
// Disable pointer events to make the legend unclickable
$('.highcharts-legend').css('pointer-events', 'none');
});

Best Regards 

Assaf

Kade
7 - Data Storage
7 - Data Storage

This works! Thank you.