Commit 9388ce29 authored by joshua-gould's avatar joshua-gould

fixed initial display when "color by"

parent 714d3107
...@@ -259,6 +259,7 @@ morpheus.HeatMapColorSchemeChooser.prototype = { ...@@ -259,6 +259,7 @@ morpheus.HeatMapColorSchemeChooser.prototype = {
if (this.colorScheme.setCurrentValue) { if (this.colorScheme.setCurrentValue) {
this.colorScheme.setCurrentValue(this.currentValue); this.colorScheme.setCurrentValue(this.currentValue);
} }
this.setColorScheme(this.colorScheme);
}, },
setColorScheme : function(colorScheme) { setColorScheme : function(colorScheme) {
this.colorScheme = colorScheme; this.colorScheme = colorScheme;
......
...@@ -286,6 +286,7 @@ morpheus.HeatMapOptions = function(controller) { ...@@ -286,6 +286,7 @@ morpheus.HeatMapOptions = function(controller) {
controller.project.getFullDataset().getRowMetadata() controller.project.getFullDataset().getRowMetadata()
.getByName(separateSchemesField)).keys())); .getByName(separateSchemesField)).keys()));
} }
colorSchemeChooser.setColorScheme(controller.heatmap.getColorScheme()); colorSchemeChooser.setColorScheme(controller.heatmap.getColorScheme());
if (separateSchemesField != null) { if (separateSchemesField != null) {
colorSchemeChooser.setCurrentValue($colorByValue.val()); colorSchemeChooser.setCurrentValue($colorByValue.val());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment