I am working on rendering a Doughnut chart using vue-chart.js. My goal is to edit only the legend labels so that if I have a 'very long string,' it will display as 'very lo...' in the legend, while still showing the full labels on hover in the tooltip.
export default {
extends: Doughnut,
mixins: [reactiveProp],
data: () => ({
options: {
responsive: true,
maintainAspectRatio: false,
legend: {
position: 'bottom',
}
}
}),
mounted() {
this.renderChart(this.chartdata, this.options);
}
};
https://i.sstatic.net/HGqPg.png
Can anyone provide guidance on how I can achieve this?