score:1

Accepted answer

you need to pass scales in the options:

...

<div class="small">
  <line-chart :chart-data="chartdata" :options="options"></line-chart>
  <button @click="filldata()">randomize</button>
</div>

...

data() {
  return {
    chartdata: null,
    options: {
      scales: {
        yaxes: [
          {
            stacked: true
          }
        ]   
      },
    },
  }
},

Related Query

More Query from same tag