Explorar o código

AMBARI-11187. Y-axis label is cut off or not shown at all in the dashboard / widget graphs.(XIWANG)

Xi Wang %!s(int64=10) %!d(string=hai) anos
pai
achega
2932476fb0
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      ambari-web/app/views/common/chart/linear_time.js

+ 2 - 1
ambari-web/app/views/common/chart/linear_time.js

@@ -366,7 +366,7 @@ App.ChartLinearTimeView = Ember.View.extend({
         this.draw(seriesData);
         this.set('hasData', true);
           //move yAxis value lower to make them fully visible
-        $("#" + this.id + "-container").find('.y_axis text').attr('y',8);
+        $("#" + this.get('id') + "-container").find('.y_axis text').attr('y',8);
       }
     }
     else {
@@ -561,6 +561,7 @@ App.ChartLinearTimeView = Ember.View.extend({
 
     new Rickshaw.Graph.Axis.Y({
       tickFormat: this.yAxisFormatter,
+      pixelsPerTick: (isPopup ? 75 : 40),
       element: yaxisElement,
       orientation: (isPopup ? 'left' : 'right'),
       graph: _graph