-
-
@@ -1368,7 +1368,7 @@ const barValuesPlugin = {
afterDatasetsDraw(chart) {
const { ctx, data } = chart;
ctx.save();
- ctx.font = 'bold 15px Inter, system-ui, sans-serif';
+ ctx.font = 'bold 12px Inter, system-ui, sans-serif';
ctx.textBaseline = 'middle';
data.datasets.forEach((dataset, i) => {
@@ -1401,11 +1401,11 @@ const barValuesPlugin = {
ctx.textAlign = 'center';
if (barHeight > 35) {
ctx.fillStyle = '#ffffff';
- ctx.font = 'bold 18px Inter, system-ui, sans-serif';
+ ctx.font = 'bold 12px Inter, system-ui, sans-serif';
ctx.fillText(label, bar.x, bar.y + 20);
} else {
ctx.fillStyle = '#64748b';
- ctx.font = 'bold 14px Inter, system-ui, sans-serif';
+ ctx.font = 'bold 10px Inter, system-ui, sans-serif';
ctx.fillText(label, bar.x, bar.y - 15);
}
}