VueUiDonut & VueUiVerticalBar
- Add config events
const config = ref({
events: {
// default
datapointEnter: null,
datapointLeave: null,
datapointClick: null
},
});
Usage:
const config = ref({
events: {
// default
datapointEnter: ({ datapoint, seriesIndex }) => {
console.log({ datapoint, seriesIndex })
},
// other events expose the same data
},
});
This feature will be gradually rolled out on other components where it makes sense.