Skip to content

Instantly share code, notes, and snippets.

@wlach
Created August 18, 2015 16:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wlach/041fccae929a3e06d9be to your computer and use it in GitHub Desktop.
Save wlach/041fccae929a3e06d9be to your computer and use it in GitHub Desktop.
diff --git a/ui/js/graphs.js b/ui/js/graphs.js
index cd3263e..0cdf79e 100644
--- a/ui/js/graphs.js
+++ b/ui/js/graphs.js
@@ -562,6 +562,17 @@ perf.controller('GraphsCtrl', [
$scope.seriesList.push(seriesSummary);
});
$q.all($scope.seriesList.map(getSeriesData)).then(function() {
+ console.log($scope.seriesList);
+ var maxPoint = _.max(
+ _.map($scope.seriesList,
+ function(series) {
+ return _.max(
+ _.map(series.flotSeries.data,
+ function(d) {
+ return d[1];
+ }));
+ }));
+ console.log(maxPoint);
plotGraph();
if ($scope.selectedDataPoint) {
showTooltip($scope.selectedDataPoint);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment