all years

This commit is contained in:
Luiz Filipe 2022-08-16 02:27:55 -03:00
parent 7db8830c43
commit 1583cbeda1

View File

@ -103,11 +103,11 @@ export function GrossAnualChart({ title, subtitle, dataProps, label, dataset, ba
}; };
let labels: string[]; let labels: string[];
if (bruta) { //if (bruta) {
labels = [`Até ${new Date().getFullYear()-1}`, `${new Date().getFullYear()}`] // labels = [`Até ${new Date().getFullYear()-1}`, `${new Date().getFullYear()}`]
} else { //} else {
labels = label labels = label;
} //}
const data: any = { const data: any = {
labels, labels,