diff options
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"] = { | 
