Commit 6a83b1a38ceaf8cca8330f9e1d992b8dd0a12041
1 parent
5f2256ab
Exists in
master
and in
7 other branches
correção na geração de gráficos no editor de variáveis
Showing
2 changed files
with
8 additions
and
7 deletions
Show diff stats
admin/html/estat_variavel.html
... | ... | @@ -32,6 +32,7 @@ body { |
32 | 32 | </style> |
33 | 33 | <script type="text/javascript" src="../js/core.js"></script> |
34 | 34 | <script type="text/javascript" src="../js/estat_variavel.js"></script> |
35 | +<script type="text/javascript" src="../../pacotes/mustache.js-master/mustache.js"></script> | |
35 | 36 | |
36 | 37 | <link rel="stylesheet" type="text/css" href="admin.css"> |
37 | 38 | </head> | ... | ... |
admin/js/estat_variavel.js
... | ... | @@ -1136,9 +1136,10 @@ i3GEOadmin.variaveis = { |
1136 | 1136 | } |
1137 | 1137 | //converte os dados para o padrao usado no grafico |
1138 | 1138 | abreDados = function(){ |
1139 | - i3GEOF.graficointerativo1.dados = dados; | |
1140 | - i3GEOF.graficointerativo1.tipo = "bar_1"; | |
1141 | - i3GEOF.graficointerativo1.montaTabelaDados = function(dados){ | |
1139 | + core_carregando("desativa"); | |
1140 | + | |
1141 | + | |
1142 | + i3GEOF.graficointerativo1.montaTabelaDados = function(idjanela,dados){ | |
1142 | 1143 | var i=0, |
1143 | 1144 | v, |
1144 | 1145 | ins, |
... | ... | @@ -1179,17 +1180,16 @@ i3GEOadmin.variaveis = { |
1179 | 1180 | ins.push("</table><br>"); |
1180 | 1181 | //ins.push("<input type=hidden id=i3GEOgraficointerativoComboXid />"); |
1181 | 1182 | //ins.push("<input type=hidden id=i3GEOgraficointerativoComboYid />"); |
1182 | - $i("i3GEOgraficointerativo1Dados").innerHTML = ins.join(""); | |
1183 | + $i(idjanela + "i3GEOgraficointerativo1Dados").innerHTML = ins.join(""); | |
1183 | 1184 | if($i("agruparsql").value != ""){ |
1184 | 1185 | //$i("i3GEOgraficointerativoComboXid").value = $i("agruparsql").value; |
1185 | 1186 | //$i("i3GEOgraficointerativoComboYid").value = "Soma"; |
1186 | 1187 | } |
1187 | 1188 | }; |
1188 | - i3GEOF.graficointerativo1.criaJanelaFlutuante(); | |
1189 | - core_carregando("desativa"); | |
1189 | + i3GEOF.graficointerativo1.iniciaJanelaFlutuante({"dados":dados,"tipo":"bar_1"}); | |
1190 | 1190 | }; |
1191 | 1191 | i3GEO.util.scriptTag( |
1192 | - "../../ferramentas/graficointerativo1/index.js", | |
1192 | + "../../ferramentas/graficointerativo1/dependencias.php", | |
1193 | 1193 | "abreDados()", |
1194 | 1194 | "i3GEOF.graficointerativo1_script" |
1195 | 1195 | ); | ... | ... |