Commit 0809b05a3b3f87071d4051ea5e81ea4071ed2242
1 parent
bdcc4568
Exists in
master
and in
7 other branches
Correção no gráfico interativo, na função de composição
Showing
2 changed files
with
9 additions
and
3 deletions
Show diff stats
admin/admin.db
No preview for this file type
ferramentas/graficointerativo1/index.js
| ... | ... | @@ -1724,12 +1724,18 @@ i3GEOF.graficointerativo1 = |
| 1724 | 1724 | nj = rsNovos.length; |
| 1725 | 1725 | //hash contendo os valores novos |
| 1726 | 1726 | for(j=0;j<nj;j++){ |
| 1727 | - b[rsNovos[j][0]] =rsNovos[j]; | |
| 1727 | + b[rsNovos[j][0]] = rsNovos[j]; | |
| 1728 | 1728 | } |
| 1729 | 1729 | //busca nos valores novos os dados com base na chave do hash original |
| 1730 | 1730 | for(d in a){ |
| 1731 | - a[d].push(b[d][1]); | |
| 1732 | - e.push(a[d]); | |
| 1731 | + if(b[d]){ | |
| 1732 | + a[d].push(b[d][1]); | |
| 1733 | + e.push(a[d]); | |
| 1734 | + } | |
| 1735 | + else{ | |
| 1736 | + a[d].push(0); | |
| 1737 | + e.push(a[d]); | |
| 1738 | + } | |
| 1733 | 1739 | } |
| 1734 | 1740 | dados.resultset = e; |
| 1735 | 1741 | } | ... | ... |