From ca1292a8346d89727c0b1287b331411229dc0e96 Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Fri, 30 Aug 2019 12:47:38 +0100 Subject: Simplify chart width in multidimensional data --- app/static/js/makeChartMulti.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'app') diff --git a/app/static/js/makeChartMulti.js b/app/static/js/makeChartMulti.js index 3ea0931..d0e4b31 100644 --- a/app/static/js/makeChartMulti.js +++ b/app/static/js/makeChartMulti.js @@ -99,16 +99,15 @@ function baseChart(selector, data, clickFunction, annotations, annotationFunctio var pointSets = {} var lineHeight = 150; - var lineWidth = 800; + lineWidth = 1000; var chartPadding = 30; - var chartWidth = 1000; var visPadding = { top: 10, - right: 20, + right: 0, bottom: 10, - left: 70, + left: 0, middle: 50 }; @@ -158,7 +157,7 @@ function baseChart(selector, data, clickFunction, annotations, annotationFunctio } var svg = d3.select(selector).append('svg') - .attr("width", chartWidth) + .attr("width", lineWidth) .attr("height", height); svg.append("defs") -- cgit v1.2.3