From cfd2f88c1610f8154c7819886fda1cfd71676c6e Mon Sep 17 00:00:00 2001 From: Jan Philipp Timme Date: Sun, 31 Dec 2017 01:48:35 +0100 Subject: [PATCH] Remove label for small xaxis completely --- js/diagrams.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/diagrams.js b/js/diagrams.js index b597a9e..badb1ba 100644 --- a/js/diagrams.js +++ b/js/diagrams.js @@ -105,10 +105,11 @@ function createLineGraph(containerId, raceData){ // ----------------------------------------------------------------------- + var contextXAxis = d3.axisBottom(x2).tickValues(0); context.append("g") .attr("class", "axis axis--x") .attr("transform", "translate(0," + smallGraphPosWidth.height + ")") - .call(d3.axisBottom(x2)); + .call(contextXAxis); context.append("g") .attr("class", "brush")