i develop the program that show some data in bar chart, i use chart.js and config my data, i just want to customize the labels and make specific label bold and color red
i use callback function in (ticks) property to access value of labels
xAxes: [{
ticks: {
fontFamily: "IRANSans",
fontSize: 16,
autoSkip: false,
callback: function(value) {
if (value === 'some_value') {
return (make color red)
} else {
return (make color blue)
}
}
}
}]
when the condition equal to some_value i just want to change the color of label please help me to correct my code :) thanks alot:)