wordpress-mobile/WordPressCom-Stats-iOS — pull request #53 by jmdodd (2014-09-18 20:03:19+00:00)
Title: Fix Y-axis step calculation in graphs

Closes #32

Y-axis calculations previously dictated a set number of ticks, which sometimes led to cells having too much whitespace at the top, or overrunning the top of the graph. This commit allows the number of ticks to adjust to fit the maximum height of the graph.

Each graph cell calculated its maximum height and Y-axis ticks; this commit moves that calculation to the graph background to avoid rerunning those calculations for each cell.