mirror of
https://github.com/getredash/redash.git
synced 2025-12-22 10:55:49 -05:00
remove throttling of redrawData
This commit is contained in:
@@ -33,7 +33,7 @@
|
|||||||
$scope.chartSeries = [];
|
$scope.chartSeries = [];
|
||||||
$scope.chartOptions = {};
|
$scope.chartOptions = {};
|
||||||
|
|
||||||
var reloadData = _.throttle(function(data) {
|
var reloadData = function(data) {
|
||||||
if (!data || ($scope.queryResult && $scope.queryResult.getData()) == null) {
|
if (!data || ($scope.queryResult && $scope.queryResult.getData()) == null) {
|
||||||
$scope.chartSeries.splice(0, $scope.chartSeries.length);
|
$scope.chartSeries.splice(0, $scope.chartSeries.length);
|
||||||
} else {
|
} else {
|
||||||
@@ -49,8 +49,8 @@
|
|||||||
}
|
}
|
||||||
$scope.chartSeries.push(_.extend(s, additional));
|
$scope.chartSeries.push(_.extend(s, additional));
|
||||||
});
|
});
|
||||||
}
|
};
|
||||||
}, 500);
|
};
|
||||||
|
|
||||||
$scope.$watch('options', function (chartOptions) {
|
$scope.$watch('options', function (chartOptions) {
|
||||||
if (chartOptions) {
|
if (chartOptions) {
|
||||||
|
|||||||
Reference in New Issue
Block a user