score:1

The chartjs-plugin-zoom provide an event listeners for user "onPan" interaction. You can access them here https://www.chartjs.org/chartjs-plugin-zoom/guide/options.html#pan-events

So the ideas is to call fetchRest() on user pan, so you can attach your function call, in the event listener, like :

pan: {
   onPan: function(chart){
      fetchRest() //fetch call
   }
},

Related Query

More Query from same tag