Disable the functionality that allows users to click on the legend in the widget to filter data
widget.on('beforeviewloaded', (scope, args) => {
for (let type in args.options.plotOptions) {
if (!args.options.plotOptions[type].events) args.options.plotOptions[type].events = {};
args.options.plotOptions[type].events.legendItemClick = () => {
return false;
}
}
});
Press the Save button and check your widget.
Now you can't click on the legend.
Check out this related content:
Academy
Documentation
0 comments