diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-05-17 13:47:32 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-06-17 13:21:28 +0200 |
commit | 592ae4b1cefd38257b643f124847cf0ec6c27c3f (patch) | |
tree | 2db168459a4025b840c211fcdffd8061fb651810 /ishtar_common/static/js/ishtar.js | |
parent | ee0ccea439e14c72ac1c633c87d36c3ef4aa0bf6 (diff) | |
download | Ishtar-592ae4b1cefd38257b643f124847cf0ec6c27c3f.tar.bz2 Ishtar-592ae4b1cefd38257b643f124847cf0ec6c27c3f.zip |
Statistics: manage resizing of graphs
Diffstat (limited to 'ishtar_common/static/js/ishtar.js')
-rw-r--r-- | ishtar_common/static/js/ishtar.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ishtar_common/static/js/ishtar.js b/ishtar_common/static/js/ishtar.js index 54823968c..112459e62 100644 --- a/ishtar_common/static/js/ishtar.js +++ b/ishtar_common/static/js/ishtar.js @@ -1553,7 +1553,7 @@ var render_stats = function(stats_values, name){ if (modality_1 == "year"){ stats_xaxis_tickoptions = {formatString: "%d"}; } else { - stats_xaxis_tickoptions = {angle:-25}; + stats_xaxis_tickoptions = {angle: -30}; } stats_xaxis["tickOptions"] = stats_xaxis_tickoptions } @@ -1566,6 +1566,7 @@ var render_stats = function(stats_values, name){ var ticks = new Array(); var series = new Array(); var series_conf = new Array(); + var legend_conf = {}; if (modality_2 && modality_2 != modality_1){ for (idx in stats_values){ ticks.push(stats_values[idx][0]); @@ -1595,6 +1596,9 @@ var render_stats = function(stats_values, name){ } } stats_xaxis['ticks'] = ticks; + legend_conf = { + show:true, location: 'e', placement: 'outside' + }; } else { jqvalues = [stats_values]; series.push("Total"); @@ -1641,7 +1645,7 @@ var render_stats = function(stats_values, name){ sizeAdjust: 7.5 }, series: series_conf, - legend: { show:true, location: 'e', placement: 'outside' } + legend: legend_conf }; if (stats_type != "pie"){ stats_options["cursor"] = { |