I am busy migrating to [email protected] from [email protected] and found that during the upgrade for some reason vue-chartjs chartOptions is not working.
I defined my lineChart like this in html:
<line-chart v-if="!loading" :chartData="chartData" :options="chartOptions"/>
and in my script I defined the chartOptions getter like this:
get chartOptions(): ChartOptions {
return {
responsive: true,
maintainAspectRatio: true,
plugins: {
legend: {
display: false,
},
},
}
}
my chartData getter is defined in a similar manner and I cannot work out why the chartOptions are not being detected properly by vue-chartjs