diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-08-30 12:47:38 +0100 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-08-30 12:47:38 +0100 |
| commit | ca1292a8346d89727c0b1287b331411229dc0e96 (patch) | |
| tree | f0ce98d10b4f84904674fc9e25d810ffef4a5cb7 /app | |
| parent | Rename container group in svg to avoid name clash (diff) | |
| download | AnnotateChange-ca1292a8346d89727c0b1287b331411229dc0e96.tar.gz AnnotateChange-ca1292a8346d89727c0b1287b331411229dc0e96.zip | |
Simplify chart width in multidimensional data
Diffstat (limited to 'app')
| -rw-r--r-- | app/static/js/makeChartMulti.js | 9 |
1 files changed, 4 insertions, 5 deletions
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") |
