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:
parent
03708a90ef
commit
34de44488d
2
tick.go
2
tick.go
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user