I use chart js for make a graph like this,
var myChart = new Chart(ctx, {
type: 'line',
data: {
//labels: new Date(items).toLocaleString(),
labels: items,
datasets: [{
label: 'Total Sale',
data: item_val,
datasetIndex: 1,
//backgroundColor: bgColor,
borderColor:'rgba(255,99,132,1)',
scaleFontColor: "#000000",
}]
},
options: {
scales: {
yAxes: [{
ticks: {
beginAtZero: true,
stepSize: 10,
autoSkip: false
}
}],
xAxes: [{
ticks: {
autoSkip: false
}
}]
},
}
});
and the result is like this,
In the red box that I marked there was a number but colored gray.
The question is how do I change the color of the text that I marked with the red box?