centred beizer curve on bars

This commit is contained in:
cubedro 2015-04-23 17:13:51 +03:00
parent 073fe17a4d
commit 04e368b161
2 changed files with 2 additions and 2 deletions

View File

@ -342,7 +342,7 @@ svg .bar:hover {
svg .line { svg .line {
fill: none; fill: none;
stroke: #ff0000; stroke: #ff0000;
stroke-width: 1.2px; stroke-width: 2px;
shape-rendering: auto; shape-rendering: auto;
} }

View File

@ -111,7 +111,7 @@ angular.module('netStatsApp.directives', []).
.tickFormat(d3.format("%")); .tickFormat(d3.format("%"));
var line = d3.svg.line() 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); }) .y(function(d) { return y(d.y); })
.interpolate('basis'); .interpolate('basis');