diff --git a/public/css/style.css b/public/css/style.css index 1f8615c..c3660e4 100644 --- a/public/css/style.css +++ b/public/css/style.css @@ -342,7 +342,7 @@ svg .bar:hover { svg .line { fill: none; stroke: #ff0000; - stroke-width: 1.2px; + stroke-width: 2px; shape-rendering: auto; } diff --git a/public/js/directives.js b/public/js/directives.js index 3249798..d0c9b04 100644 --- a/public/js/directives.js +++ b/public/js/directives.js @@ -111,7 +111,7 @@ angular.module('netStatsApp.directives', []). .tickFormat(d3.format("%")); var line = d3.svg.line() - .x(function(d) { return x(d.x + d.dx); }) + .x(function(d) { return x(d.x + d.dx/2); }) .y(function(d) { return y(d.y); }) .interpolate('basis'); @@ -125,7 +125,6 @@ angular.module('netStatsApp.directives', []). // Adjust y axis y.domain([0, d3.max(data, function(d) { return d.y; })]); - // y.domain([0, 1]); // Delete previous histogram element.empty();