diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2016-04-01 17:37:17 +0200 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2016-04-01 17:37:17 +0200 |
| commit | 4180d54aef2022f0f5e75e9e300e6b427d331d5a (patch) | |
| tree | b71ee9015e6775f64e06c89d4e715199005694ea /code | |
| parent | 962b1ec3ded7a0ccc77765e973f6321dc92ec688 (diff) | |
| download | vortrag-knn-4180d54aef2022f0f5e75e9e300e6b427d331d5a.tar.gz vortrag-knn-4180d54aef2022f0f5e75e9e300e6b427d331d5a.zip | |
fix colors and descriptions
Diffstat (limited to 'code')
| -rw-r--r-- | code/weightvis.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/code/weightvis.js b/code/weightvis.js index 409eb90..10a9ed2 100644 --- a/code/weightvis.js +++ b/code/weightvis.js @@ -20,17 +20,16 @@ var primaryColor = [pDeepPurple[1], pDeepPurple[5], pDeepPurple[7]], secondaryColor = pBlueA[3], - tertiaryColor = [pPink[1], pPink[5], pPink[7]], themeColor = pLight, accentColor = secondaryColor, bgColor = themeColor[3], - linkColor = primaryColor[0], - linkColorAlt = tertiaryColor[0], - linkHighlightColor = primaryColor[1], - linkHighlightColorAlt = tertiaryColor[1], - nodeColor = textColor[0], + linkColor = pDeepPurple[2], + linkColorAlt = pPink[2], + linkHighlightColor = pDeepPurple[5], + linkHighlightColorAlt = pPink[5], + nodeColor = pDeepPurple[4], nodeHighlightColor = accentColor ; @@ -341,6 +340,7 @@ var Visualizer = (function() { }; Visualizer.prototype.reposition = function() { + if (!this.svg) return; var width = parseInt(this.svg.style("width")) || 800, height = parseInt(this.svg.style("height")) || 600; var node = this.svg.selectAll(".node"); |
