changed the tick sanity ount variable (#42)

- The DefaultTickSanityCount was set in the default.go file and then in
in tick.go the setting was ignored and the value was again set with 1 << 10
Changed to use the setting instead
This commit is contained in:
Jeff Willette 2017-05-23 12:11:29 +09:00 committed by Will Charczuk
parent 03708a90ef
commit 34de44488d
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ func GenerateContinuousTicks(r Renderer, ra Range, isVertical bool, style Style,
tickStep := rangeDelta / float64(intermediateTickCount)
roundTo := util.Math.GetRoundToForDelta(rangeDelta) / 10
intermediateTickCount = util.Math.MinInt(intermediateTickCount, 1<<10)
intermediateTickCount = util.Math.MinInt(intermediateTickCount, DefaultTickCountSanityCheck)
for x := 1; x < intermediateTickCount; x++ {
var tickValue float64