score:0

first off you need to access curent chart instance. i have fond this github issue, in which author states that current instance is saved in this.$data._chart.

then you should call getelementsatevent method of instance, passing an event as the first argument.

calling getelementsatevent(event) on your chart instance passing an argument of an event, or jquery event, will return the point elements that are at that the same position of that event. this functionality may be useful for implementing dom based tooltips, or triggering custom behaviour in your application.

this.$data._chart.getelementsatevent(event);

then, implement your custom login, depending on the returned value of that method (if you are using vue router: this.$router.push("/path/to/redirect");).


Related Query

More Query from same tag