bug fixes and refinements.
This commit is contained in:
parent
52e80c183d
commit
debd56f494
7 changed files with 31 additions and 21 deletions
2
tick.go
2
tick.go
|
|
@ -3,7 +3,7 @@ package chart
|
|||
// GenerateTicksWithStep generates a set of ticks.
|
||||
func GenerateTicksWithStep(ra Range, step float64, vf ValueFormatter) []Tick {
|
||||
var ticks []Tick
|
||||
min, max := ra.GetRoundedRangeBounds()
|
||||
min, max := ra.Min, ra.Max
|
||||
for cursor := min; cursor <= max; cursor += step {
|
||||
ticks = append(ticks, Tick{
|
||||
Value: cursor,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue