[Chartjs]-Chart.js โ€“ is there a way to extend an existing scale?

1๐Ÿ‘

I came across your post when I was looking for almost the same as you.
So far, what I saw that was possible was something like:

var TimelineScale = Chart.scaleService.getScaleConstructor('time').extend({
    
  determineDataLimits: function() {
    var me = this;
    // ...
  }
    
});

You can see an example like this on the chartjs-chart-timeline plugin.

Leave a comment