const data = {
labels: ['15/10/22', '16/10/22', '17/10/22','18/10/22'],
datasets: [{
label: 'WL',
data: [18, 20, 6, 12],
backgroundColor: 'rgba(255,99,132)',
borderColor:'rgba(255,99,132)',
borderWidth: 3,
},
{
label:'PlayersOn',
data: [45, 35, 37, 30],
backgroundColor: 'rgba(0,255,255)',
borderColor:'rgba(0,255,255)',
borderWidth: 3
},
{
label:'Policia',
data: [10, 10, 10, 24],
backgroundColor: 'rgba(255,15,15)',
borderColor:'rgba(255,15,15)',
borderWidth: 3
},
{
label:'HorasOn',
data: [1, 45, 15, 36 ],
backgroundColor: 'rgba(255,255,0)',
borderColor:'rgba(255,255,0)',
borderWidth: 3
}
]
};
const config = {
type: 'bar',
data,
options: {
plugins: {
subtitle: {
display: true,
text: 'Grafico em dias',
},
},
}
};
const myChart = new Chart(
document.getElementById('myChart'),
config
);
What I have tried:
tentei mudar a biblioteca do head for body but don't