0👍
About color, your chart options are wrong because you defined scales
inside the plugins
and that’s wrong.
The correct is:
const barOptions = {
options: {
scales: {
x: {
ticks: {
color: '#ffffff',
},
},
y: {
type: 'time',
time: {
unit: 'hour',
},
ticks: {
color: 'white',
},
},
},
},
};
IMO it’s better to submit a question for a specific topic and not put many topics in the same question as you did 😉
- Chartjs-Uncaught ReferenceError: Chart is not defined – Chart.js in laravel 5
- Chartjs-Problem with Charts.js in vue. anyone can help step by step
Source:stackexchange.com