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[];
if (bruta) {
labels = [`Até ${new Date().getFullYear()-1}`, `${new Date().getFullYear()}`]
} else {
labels = label
}
//if (bruta) {
// labels = [`Até ${new Date().getFullYear()-1}`, `${new Date().getFullYear()}`]
//} else {
labels = label;
//}
const data: any = {
labels,