Repository: ambari Updated Branches: refs/heads/trunk 6971baebb -> 2932476fb
AMBARI-11187. Y-axis label is cut off or not shown at all in the dashboard / widget graphs.(XIWANG) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/2932476f Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/2932476f Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/2932476f Branch: refs/heads/trunk Commit: 2932476fb031e0b2b0749a96c66d7e0835b21382 Parents: 6971bae Author: Xi Wang <[email protected]> Authored: Mon May 18 14:48:38 2015 -0700 Committer: Xi Wang <[email protected]> Committed: Mon May 18 15:13:24 2015 -0700 ---------------------------------------------------------------------- ambari-web/app/views/common/chart/linear_time.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/2932476f/ambari-web/app/views/common/chart/linear_time.js ---------------------------------------------------------------------- diff --git a/ambari-web/app/views/common/chart/linear_time.js b/ambari-web/app/views/common/chart/linear_time.js index 2f0c33a..ab824ca 100644 --- a/ambari-web/app/views/common/chart/linear_time.js +++ b/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
