Having trouble with adding font color to black in the react chart js library
Asked
Active
Viewed 132 times
1 Answers
1
Assuming you want to change the font color of the tick labels, this can be done through the axes ticks
configuration as follows.
const options = {
scales: {
x: {
ticks: {
color: 'black'
}
},
y: {
ticks: {
color: 'black'
}
}
}
};
...
<Bar options={options} data={data} />;
For further details, please consult Tick Configuration from the Chart.js documentation

uminder
- 23,831
- 5
- 37
- 72
-
What about the fontsize? – Menai Ala Eddine - Aladdin Jul 20 '23 at 22:36