mirror of
https://github.com/welton89/RRBEC.git
synced 2026-04-05 13:35:42 +00:00
style: paleta de cores
This commit is contained in:
@@ -29,11 +29,20 @@ var chartVendas = new Chart("vendas", {
|
||||
y: {
|
||||
ticks: {
|
||||
display: true,
|
||||
color: 'white',
|
||||
callback: function(value, index, values) {
|
||||
return chartVendas.data.labels[index].substring(0, 6);
|
||||
},
|
||||
}
|
||||
},
|
||||
x: {
|
||||
ticks: {
|
||||
display: true,
|
||||
color: 'white',
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
},
|
||||
legend: {
|
||||
display: true,
|
||||
@@ -116,7 +125,7 @@ var chartCuisine = new Chart("cuisine", {
|
||||
size: 18,
|
||||
weight: 'normal'
|
||||
},
|
||||
backgroundColor: 'rgba(8, 26, 81, 0.66)',
|
||||
backgroundColor: 'rgba(1, 2, 5, 0.66)',
|
||||
bodyColor: 'rgba(255, 255, 255, 0.7)',
|
||||
bodyFont: {
|
||||
family: "'Poppins', 'sans-serif'",
|
||||
@@ -306,7 +315,7 @@ var resposta = fetch(`/chartCuisine/${dateStart}/${dateEnd}`, {method: 'GET',
|
||||
chartCuisine.data.labels = xValues
|
||||
chartCuisine.update();
|
||||
|
||||
document.getElementById('30-days').innerText = ''
|
||||
document.getElementById('30-days').innerText = 'Período de 30 dias'
|
||||
|
||||
})
|
||||
.catch(error => {
|
||||
|
||||
Reference in New Issue
Block a user