CloudOpting / cloudopting-manager

The cloudopting core manager
MIT License
10 stars 7 forks source link

Dynamic graph do not show correctly #262

Closed gioppoluca closed 8 years ago

gioppoluca commented 8 years ago

We generate graph from elasticsearch dynamically but the problem is that morris.js does not find the ele,ments since angular has not yet created them we need to move the morris generation after we generate the element or we will have problems in visualization

xeviscc commented 8 years ago

This is why a timeout of 1 second was given in https://github.com/CloudOpting/cloudopting-manager/blob/master/rest-component/src/main/webapp/scripts/app/service/monitoring/monitoring.controller.js

xeviscc commented 8 years ago

Add something like:

                    $timeout(function () {
                        $("#itemSelected").empty();
                        lineChartZabb($scope.zabbixgraph, "itemSelected");
                    }, 1000);