I am utilizing the ngx-charts library in my current project.
When using the onSelect method, I noticed that it only returns an object with attributes value and name, even though my list contains three attributes: value, name, and id.
Upon examining the source code, I discovered that the onClick method within the PieGridSeriesComponent only emits the value and name attributes.
PieGridSeriesComponent.prototype.onClick = function (data) {
this.select.emit({
name: this.data[0].data.name,
value: this.data[0].data.value
});
};
Is there a way to modify the source files to change what onSelect method returns with the click event, or is there an alternate approach?