[Chartjs]-Increase space between legend and chart

2๐Ÿ‘

@gowtham rajan is correct, based on this answer you can use a simple inline plugin to do the job:

{
  beforeInit: function(chart, options) {
    chart.legend.afterFit = function() {
      this.height += 100; // must use `function` and not => because of `this`
    };
  }
}

See this stackblitz for example

Leave a comment