Skip to content

Commit

Permalink
Typos and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
wirew0rm authored and RalphSteinhagen committed Sep 24, 2021
1 parent ac46a36 commit 360b0b1
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ public void invalidateCaches() {
}

/**
* Called when data has changed and the range may not be valid any more. This is only called by the chart if
* Called when data has changed and the range may not be valid anymore. This is only called by the chart if
* isAutoRanging() returns true. If we are auto ranging it will cause layout to be requested and auto ranging to
* happen on next layout pass.
*
Expand Down Expand Up @@ -439,11 +439,9 @@ public boolean setMin(final double value) {
* @return Range information, this is implementation dependent
*/
protected AxisRange autoRange(final double length) {
// guess a sensible starting size for label size, that is approx 2 lines
// vertically or 2 charts horizontally
// guess a sensible starting size for label size, that is approx 2 lines vertically or 2 charts horizontally
if (isAutoRanging() || isAutoGrowRanging()) {
// guess a sensible starting size for label size, that is approx 2
// lines vertically or 2 charts horizontally
// guess a sensible starting size for label size, that is approx 2 lines vertically or 2 charts horizontally
final double labelSize = getTickLabelFont().getSize() * 1.2; // N.B. was '2' in earlier implementations
return autoRange(getAutoRange().getMin(), getAutoRange().getMax(), length, labelSize);
}
Expand Down

0 comments on commit 360b0b1

Please sign in to comment.