Skip to content

Commit 86c9b2f

Browse files
authored
Merge pull request #126 from colin-combe/master
bug fix for colour schemes
2 parents 83166d6 + 5efcab4 commit 86c9b2f

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

build/complexviewer.js

Lines changed: 3 additions & 3 deletions
Large diffs are not rendered by default.

src/controller/Controller.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -985,15 +985,15 @@ xiNET.Controller.prototype.setAnnotations = function(annotationChoice) {
985985
for (m = 0; m < molCount; m++) {
986986
var mol = mols[m];
987987
for (var a = 0; a < mol.annotations.length; a++){
988-
categories.add(mol.annotations[a].name);
988+
categories.add(mol.annotations[a].description);
989989
}
990990
}
991991
var catCount = categories.values().length;
992992

993993
var colourScheme;// = null;
994994
if (catCount < 3){catCount = 3;}
995995
//~ if (catCount < 21) {
996-
if (catCount < 6) {
996+
if (catCount < 5) {
997997
//~ var reversed = colorbrewer.Accent[catCount].slice().reverse();
998998
//~ colourScheme = d3.scale.ordinal().range(reversed);
999999
colourScheme = d3.scale.ordinal().range(colorbrewer.Set1[4]);

0 commit comments

Comments
 (0)