Skip to content

Commit

Permalink
bug fix.
Browse files Browse the repository at this point in the history
 - break chart layout when click to link node again.
  • Loading branch information
denzelsN committed Nov 4, 2016
1 parent 1079064 commit 0519801
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,11 @@
var className = $filter('applicationNameToClassName')(toApplicationName);
namespace = namespace || 'forLink_' + className;
if (namespace === 'forLink' && bResponseSummaryForLinkRendered) {
scope.$broadcast('responseTimeChartDirective.updateData.' + namespace, histogram);
// scope.$broadcast('responseTimeChartDirective.updateData.' + namespace, histogram);
} else {
if (namespace === 'forLink') {
bResponseSummaryForLinkRendered = true;
}
scope.$broadcast('responseTimeChartDirective.initAndRenderWithData.' + namespace, histogram, w, h, true, true);
scope.$on('responseTimeChartDirective.itemClicked.' + namespace, function (event, data) {
var label = data.responseTime,
values = data.count;
Expand Down Expand Up @@ -199,6 +198,7 @@
scope.$emit('linkInfoDetailsDirective.ResponseSummary.barClicked', oServerMapFilterVoService, oServerMapHintVoService);
});
}
scope.$broadcast('responseTimeChartDirective.initAndRenderWithData.' + namespace, histogram, w, h, true, true);
};

renderResponseSummaryWithLink = function (namespace, link, w, h) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
(function() {
'use strict';
/**
* (en)responseTimeChartDirective
* @ko responseTimeChartDirective
* @group Directive
* @name responseTimeChartDirective
* @class
*/
pinpointApp.constant('responseTimeChartDirectiveConfig', {
myColors: ["#2ca02c", "#3c81fa", "#f8c731", "#f69124", "#f53034"]
});
Expand Down

0 comments on commit 0519801

Please sign in to comment.