2👍
1👍
you already have data object.
you need options object.
for example in Doughnut chart :
const options = {
plugins: {
tooltip: {
titleFont: {
size: 20
},
bodyFont: {
size: 20
},
},
legend: {
display: true,
responsive: true,
position: "bottom",
labels: {
boxWidth: 36,
padding: 40,
font: {
size: 34
},
},
align: "center",
},
}
in this example you can also change box size, styles toolltip, set padding, font size ...
<Doughnut data={data} options={options} />;
Source:stackexchange.com