Skip to content

Having trouble using toggleDataPointSelection on Mounted #129

@DaveHughes91

Description

@DaveHughes91

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);
}
},
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions