{
- tableData.map(data => {
+ tableData.data.map(data => {
return <>
| {data.year_month_formatted} |
- {data.nordeste} |
- {data.norte} |
- {data.sudeste} |
- {data.sul} |
+ {parseFloat(data.nordeste).toLocaleString('pt-br',{style: 'currency', currency: 'BRL', minimumFractionDigits: 2})} |
+ {parseFloat(data.norte).toLocaleString('pt-br',{style: 'currency', currency: 'BRL', minimumFractionDigits: 2})} |
+ {parseFloat(data.sudeste).toLocaleString('pt-br',{style: 'currency', currency: 'BRL', minimumFractionDigits: 2})} |
+ {parseFloat(data.sul).toLocaleString('pt-br',{style: 'currency', currency: 'BRL', minimumFractionDigits: 2})} |
>
})
}
-
- | Mín |
- xxxx |
- xxxx |
- xxxx |
- xxxx |
-
-
- | Max |
- xxxx |
- xxxx |
- xxxx |
- xxxx |
-
-
- | Desv Pad |
- xxxx |
- xxxx |
- xxxx |
- xxxx |
-
+ {
+ tableData.result.map((data, index) => {
+ if (index === 0) {
+ return <>
+
+ | Max |
+ {parseFloat(data.nordeste_max).toLocaleString('pt-br',{style: 'currency', currency: 'BRL', minimumFractionDigits: 2})} |
+ {parseFloat(data.norte_max).toLocaleString('pt-br',{style: 'currency', currency: 'BRL', minimumFractionDigits: 2})} |
+ {parseFloat(data.sudeste_max).toLocaleString('pt-br',{style: 'currency', currency: 'BRL', minimumFractionDigits: 2})} |
+ {parseFloat(data.sul_max).toLocaleString('pt-br',{style: 'currency', currency: 'BRL', minimumFractionDigits: 2})} |
+
+ >
+ } else if (index===1) {
+ return <>
+
+ | Min |
+ {parseFloat(data.nordeste_min).toLocaleString('pt-br',{style: 'currency', currency: 'BRL', minimumFractionDigits: 2})} |
+ {parseFloat(data.norte_min).toLocaleString('pt-br',{style: 'currency', currency: 'BRL', minimumFractionDigits: 2})} |
+ {parseFloat(data.sudeste_min).toLocaleString('pt-br',{style: 'currency', currency: 'BRL', minimumFractionDigits: 2})} |
+ {parseFloat(data.sul_min).toLocaleString('pt-br',{style: 'currency', currency: 'BRL', minimumFractionDigits: 2})} |
+
+ >
+ } else if (index===2) {
+ return <>
+
+ | Desv. Padrão |
+ {parseFloat(data.nordeste_desv_pad).toLocaleString('pt-br',{style: 'currency', currency: 'BRL', minimumFractionDigits: 2})} |
+ {parseFloat(data.norte_desv_pad).toLocaleString('pt-br',{style: 'currency', currency: 'BRL', minimumFractionDigits: 2})} |
+ {parseFloat(data.sudeste_desv_pad).toLocaleString('pt-br',{style: 'currency', currency: 'BRL', minimumFractionDigits: 2})} |
+ {parseFloat(data.sul_desv_pad).toLocaleString('pt-br',{style: 'currency', currency: 'BRL', minimumFractionDigits: 2})} |
+
+ >
+ }
+ })
+ }