Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
luisrguerra committed May 13, 2024
1 parent fcb4b3a commit e7a668c
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions dashboard-v1/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,10 @@ <h2 class="accordion-header" id="headingOne">
} catch (error) {
alert('Erro ao carregar dados');
cash = [
{date:'1/24',cash:0,balance:0,predictedCash:0},
{date:'2/24',cash:0,balance:0,predictedCash:0},
{date:'3/24',cash:0,balance:0,predictedCash:0},
{date:'4/24',cash:0,balance:0,predictedCash:0},
{date:'1/24',cash:0,balance:0,predictedCash:0,enej:0},
{date:'2/24',cash:0,balance:0,predictedCash:0,enej:0},
{date:'3/24',cash:0,balance:0,predictedCash:0,enej:0},
{date:'4/24',cash:0,balance:0,predictedCash:0,enej:0},
];
}

Expand All @@ -174,6 +174,12 @@ <h2 class="accordion-header" id="headingOne">
borderColor: '#ffd600',
borderWidth: 3
},
{
label: 'Enej',
data: cash.map(item => item.enej),
borderColor: '#700299',
borderWidth: 3
},
]};
// configurar
const config = {type: 'line', data};
Expand Down Expand Up @@ -233,7 +239,10 @@ <h2 class="accordion-header" id="headingOne">
th3.innerText = 'Fluxo de caixa previsto';
const th4 = document.createElement('th');
tr.appendChild(th4);
th4.innerText = 'Saldo';
th4.innerText = 'Enej';
const th5 = document.createElement('th');
tr.appendChild(th5);
th5.innerText = 'Saldo';
const tbody = document.createElement('tbody');
table.appendChild(tbody);
cash.forEach(item => {
Expand All @@ -250,7 +259,10 @@ <h2 class="accordion-header" id="headingOne">
td3.innerText = item.predictedCash;
const td4 = document.createElement('td');
tr.appendChild(td4);
td4.innerText = item.balance;
td4.innerText = item.enej;
const td5 = document.createElement('td');
tr.appendChild(td5);
td5.innerText = item.balance;
});
})();

Expand Down

0 comments on commit e7a668c

Please sign in to comment.