summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2014-05-21 18:55:47 +0200
committerPeter Wu <peter@lekensteyn.nl>2014-05-21 18:55:47 +0200
commita0f1f7514bd90703dff5ed5ce7ab52353864eba1 (patch)
treec38f41fd67796e82e6763f6c56484cedeea2645c
parent95266176402fd448a78064196a97254976204294 (diff)
downloadd3viz-a0f1f7514bd90703dff5ed5ce7ab52353864eba1.tar.gz
Make arrowhead smaller, change colors
-rw-r--r--js/spam.js2
-rw-r--r--spamviz.html5
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 {