Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions new-pipeline/src/evo.js
Original file line number Diff line number Diff line change
Expand Up @@ -913,12 +913,12 @@ var Line = (function () {
this.values = values || [];

// Assign a color to the line
var stateString = this.getStateString();
if (!lineColors.hasOwnProperty(stateString)) {
var colorId = this.getColorId();
if (!lineColors.hasOwnProperty(colorId)) {
goodColorIndex = (goodColorIndex + 1) % goodColors.length;
lineColors[stateString] = goodColors[goodColorIndex];
lineColors[colorId] = goodColors[goodColorIndex];
}
this.color = lineColors[stateString];
this.color = lineColors[colorId];
}

Line.prototype.getVersionString = function Line_getVersionString() {
Expand All @@ -933,8 +933,8 @@ var Line = (function () {
}
return this.aggregate + " " + this.measure + " for " + getHumanReadableChannelName(this.channelVersion);
};
Line.prototype.getStateString = function Line_getTitleString() {
return this.aggregate + "/" + this.measure + "/" + getHumanReadableChannelName(this.channelVersion).replace(' ', '-');
Line.prototype.getColorId = function Line_getColorId() {
return this.aggregate + "/" + this.measure;
};

return Line;
Expand Down