fixing things with generated ticks.
This commit is contained in:
parent
457fefbc6d
commit
0fe9f53806
3 changed files with 39 additions and 43 deletions
4
yaxis.go
4
yaxis.go
|
|
@ -47,8 +47,8 @@ func (ya YAxis) GetTicks(r Renderer, ra Range, defaults Style, vf ValueFormatter
|
|||
if tp, isTickProvider := ra.(TicksProvider); isTickProvider {
|
||||
return tp.GetTicks(vf)
|
||||
}
|
||||
step := CalculateContinuousTickStep(r, ra, true, ya.Style.InheritFrom(defaults), vf)
|
||||
return GenerateContinuousTicksWithStep(ra, step, vf, true)
|
||||
tickStyle := ya.Style.InheritFrom(defaults)
|
||||
return GenerateContinuousTicks(r, ra, true, tickStyle, vf)
|
||||
}
|
||||
|
||||
// GetGridLines returns the gridlines for the axis.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue