diff --git a/tabs/sensors.css b/tabs/sensors.css index d0f5ba75..0905e12f 100644 --- a/tabs/sensors.css +++ b/tabs/sensors.css @@ -55,6 +55,7 @@ } .tab-sensors .grid .tick { stroke: silver; + stroke-width: 1px; shape-rendering: crispEdges; } .tab-sensors .line { @@ -64,9 +65,10 @@ .tab-sensors .grid path { stroke-width: 0; } -.tab-sensors .axis path, .axis line { +.tab-sensors .axis path, .tab-sensors .axis line { fill: none; stroke: #000; + stroke-width: 1px; shape-rendering: crispEdges; } .tab-sensors .line:nth-child(1) { diff --git a/tabs/sensors.html b/tabs/sensors.html index 32fed01a..81d91783 100644 --- a/tabs/sensors.html +++ b/tabs/sensors.html @@ -32,9 +32,9 @@ + -
@@ -70,9 +70,9 @@ + -
@@ -107,9 +107,9 @@ + -
@@ -135,9 +135,9 @@ + -
@@ -163,9 +163,9 @@ + -
@@ -177,9 +177,9 @@ + -
@@ -191,9 +191,9 @@ + -
@@ -205,8 +205,8 @@ + -
diff --git a/tabs/sensors.js b/tabs/sensors.js index 8f3b8f7a..41a962c0 100644 --- a/tabs/sensors.js +++ b/tabs/sensors.js @@ -44,6 +44,7 @@ function initGraphHelpers(selector, sampleNumber, heightDomain) { var helpers = {selector: selector, dynamicHeightDomain: !heightDomain}; helpers.widthScale = d3.scale.linear(). + clamp(true). domain([(sampleNumber - 299), sampleNumber]). range([0, width]);