Skip to content

Commit

Permalink
Adjusted for latest "guard" changes
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgindi committed Mar 17, 2016
1 parent 7cde97d commit fec9c7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Charts/Classes/Renderers/ChartYAxisRenderer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ public class ChartYAxisRenderer: ChartAxisRendererBase

let rawInterval = range / Double(labelCount)
var interval = ChartUtils.roundToNextSignificant(number: Double(rawInterval))
if !_yAxis.allowRepeatedValues
if !yAxis.allowRepeatedValues
{
interval = interval < _yAxis.granuality ? _yAxis.granuality : interval
interval = interval < yAxis.granuality ? yAxis.granuality : interval
}
let intervalMagnitude = pow(10.0, round(log10(interval)))
let intervalSigDigit = (interval / intervalMagnitude)
Expand Down

0 comments on commit fec9c7f

Please sign in to comment.