From 9e2940c5cb65b37f0a2a2f4f829198f6576999d8 Mon Sep 17 00:00:00 2001 From: Joshua Gould Date: Fri, 17 Jun 2016 12:10:24 -0400 Subject: [PATCH] achilles color scheme --- src/ui/heat_map.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/ui/heat_map.js b/src/ui/heat_map.js index 0c01e49..1ab00a6 100644 --- a/src/ui/heat_map.js +++ b/src/ui/heat_map.js @@ -225,6 +225,7 @@ morpheus.HeatMap = function (options) { } else { this.$el = $(options.el); } + this.$el.addClass('morpheus'); if (!options.landingPage) { options.landingPage = new morpheus.LandingPage(); options.landingPage.$el.prependTo(this.$el); @@ -765,6 +766,23 @@ morpheus.HeatMap.prototype = { color: 'red' }] }; + } else if (options.filename.toLowerCase().indexOf('achilles') !== -1) { + colorScheme = { + type: 'fixed', + map: [{ + value: -3, + color: 'blue' + }, { + value: -1, + color: 'white' + }, { + value: 1, + color: 'white' + }, { + value: 3, + color: 'red' + }] + }; } if (colorScheme && options.filename) { -- GitLab