diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-12-06 14:42:53 -0500 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-12-06 14:43:36 -0500 |
commit | 5933a829b7e0201fefe4198672612c0ae77000d6 (patch) | |
tree | 0faa27b990de8c1bb77682b2d6d975181f1fd0ad /assets/js/analytic.js | |
parent | 18bba794131e18b6ae81dff897bc196f43ca9d63 (diff) |
Minors layout improvements
Diffstat (limited to 'assets/js/analytic.js')
-rw-r--r-- | assets/js/analytic.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/assets/js/analytic.js b/assets/js/analytic.js index e8cffdc7..14cbc815 100644 --- a/assets/js/analytic.js +++ b/assets/js/analytic.js @@ -31,7 +31,7 @@ Kanboard.Analytic.CFD = (function() { { var series = prepareSeries(metrics, labels); - var svg = dimple.newSvg("#chart", 800, 380); + var svg = dimple.newSvg("#chart", "100%", 380); var chart = new dimple.chart(svg, series); var x = chart.addCategoryAxis("x", labels['day']); @@ -81,13 +81,13 @@ Kanboard.Analytic.TaskRepartition = (function() { { var series = prepareSeries(metrics, labels); - var svg = dimple.newSvg("#chart", 700, 350); + var svg = dimple.newSvg("#chart", "100%", 350); var chart = new dimple.chart(svg, series); chart.addMeasureAxis("p", labels["nb_tasks"]); var ring = chart.addSeries(labels["column_title"], dimple.plot.pie); ring.innerRadius = "50%"; - chart.addLegend(0, 0, 100, 100, "left"); + chart.addLegend(0, 0, 100, "100%", "left"); chart.draw(); } @@ -126,13 +126,13 @@ Kanboard.Analytic.UserRepartition = (function() { { var series = prepareSeries(metrics, labels); - var svg = dimple.newSvg("#chart", 700, 350); + var svg = dimple.newSvg("#chart", "100%", 350); var chart = new dimple.chart(svg, series); chart.addMeasureAxis("p", labels["nb_tasks"]); var ring = chart.addSeries(labels["user"], dimple.plot.pie); ring.innerRadius = "50%"; - chart.addLegend(0, 0, 100, 100, "left"); + chart.addLegend(0, 0, 100, "100%", "left"); chart.draw(); } |