adding span gaps to annual

This commit is contained in:
Luiz Filipe 2022-08-16 03:05:21 -03:00
parent 17d9bbfe1a
commit 5535fb860f

View File

@ -128,7 +128,8 @@ export function GrossAnualChart({ title, subtitle, dataProps, label, dataset, ba
type: 'bar', type: 'bar',
stacked: true, stacked: true,
label: 'Estimado', label: 'Estimado',
data: [0].concat(dataProps.filter(value => value.dad_estimado === true).map((value, index) => { spanGaps: true,
data: [null].concat(dataProps.filter(value => value.dad_estimado === true).map((value, index) => {
if (value.dad_estimado) if (value.dad_estimado)
return parseFloat(value.economia_acumulada) return parseFloat(value.economia_acumulada)
else else