Skip to content
This repository was archived by the owner on Mar 31, 2024. It is now read-only.

Commit

Permalink
Merge pull request elastic#1831 from stormpython/fix_1824
Browse files Browse the repository at this point in the history
Closes elastic#1824. Strange y axis labels on low values (< 1)
  • Loading branch information
rashidkpc committed Nov 6, 2014
2 parents 73f6f50 + 06821a8 commit 9332dfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kibana/components/vislib/lib/y_axis.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ define(function (require) {

if (isPercentage) {
tickFormat = d3.format('%');
} else if (height <= 1 && !isPercentage) {
} else if (this.yMax <= 1 && !isPercentage) {
tickFormat = d3.format('n');
} else {
tickFormat = d3.format('s');
Expand Down

0 comments on commit 9332dfe

Please sign in to comment.