From a0f1f7514bd90703dff5ed5ce7ab52353864eba1 Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Wed, 21 May 2014 18:55:47 +0200 Subject: Make arrowhead smaller, change colors --- js/spam.js | 2 -- spamviz.html | 5 +++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/js/spam.js b/js/spam.js index e007b8c..2b70ace 100644 --- a/js/spam.js +++ b/js/spam.js @@ -113,8 +113,6 @@ function initSvg() { // definition for an arrow head. Note: affected by stroke width of the path .append('marker') .attr('id', 'arrow') - .attr('markerWidth', 6) - .attr('markerHeight', 6) .attr('orient', 'auto') // make dimensions relative to this box instead of absolute pixels // NOTE: capital 'B'!!! view *B* ox!!! Spent two hours on that... diff --git a/spamviz.html b/spamviz.html index acebd5e..9f414e8 100644 --- a/spamviz.html +++ b/spamviz.html @@ -92,7 +92,7 @@ html, body { fill: orange; } .node.ham { - fill: green; + fill: #6c6; } .node.neighbor { fill: #fcc; @@ -101,12 +101,13 @@ html, body { fill: #f00; } .link { - stroke: #999; + stroke: #ddd; stroke-opacity: .6; /* fill none to prevent arcs lines being too thick */ fill: none; } .arrow-head { + fill: #399; fill-opacity: .6; } .link.neighbor { -- cgit v1.2.1