From 073fe17a4dbf07f45fe4fa73c34b1149a801eaec Mon Sep 17 00:00:00 2001 From: cubedro Date: Thu, 23 Apr 2015 17:12:14 +0300 Subject: [PATCH 1/2] removed comment from directives.js --- public/js/directives.js | 1 - 1 file changed, 1 deletion(-) diff --git a/public/js/directives.js b/public/js/directives.js index 3249798..68ce486 100644 --- a/public/js/directives.js +++ b/public/js/directives.js @@ -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(); From 04e368b1616f4098670a9e90c3403f65ff066fe6 Mon Sep 17 00:00:00 2001 From: cubedro Date: Thu, 23 Apr 2015 17:13:51 +0300 Subject: [PATCH 2/2] centred beizer curve on bars --- public/css/style.css | 2 +- public/js/directives.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 68ce486..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');