var queryLineData = function()

in src/main/resources/static/src/controller.js [539:576]


    var queryLineData = function () {
        var _date;
        if($scope.date != null){
            _date = $filter('date')($scope.date.valueOf(), "yyyy-MM-dd");
        }else{
            _date = $filter('date')(new Date(), "yyyy-MM-dd");
        }
        // $scope.lineChart.showLoading();
        remoteApi.queryBrokerHisData(_date,function(resp){
            // $scope.lineChart.hideLoading();
            if (resp.status == 0) {
                var _data = {}
                var _xAxisData = [];
                $.each(resp.data,function(address,values){
                    _data[address] = values;
                    _xAxisData.push(address);
                })
                $scope.lineChart.setOption(getBrokerLineChart(_xAxisData,_data));
            }else{
                Notification.error({message: "" + resp.errMsg, delay: 2000});
            }
        })

        $scope.topicLineChart.showLoading();
        remoteApi.queryTopicHisData(_date,$scope.selectedTopic,function (resp) {
            $scope.topicLineChart.hideLoading();
            if (resp.status == 0) {
                var _data = {};
                _data[$scope.selectedTopic] = resp.data;
                var _xAxisData = $scope.selectedTopic;
                $scope.topicLineChart.setOption(getTopicLineChart(_xAxisData,_data));
            }else{
                Notification.error({message: "" + resp.errMsg, delay: 2000});
            }

        })

    }