Trying to select a data point in a donut pie chart by default on mounted. I would make it so that the biggest one is selected. But having trouble selecting one at all.
Where am I going wrong?
chart: {
events: {
mounted: function(chartContext, config) {
console.log('mounted');
console.log(this);
$(this).toggleDataPointSelection(0, 0);
}
},
}