fixing fit issues on the xaxis labels for stacked bar.

This commit is contained in:
Will Charczuk 2016-07-30 09:35:44 -07:00
parent 9b4307e186
commit 9c96af2a22
6 changed files with 42 additions and 12 deletions

View file

@ -48,7 +48,7 @@ func (ya YAxis) GetTicks(r Renderer, ra Range, defaults Style, vf ValueFormatter
return tp.GetTicks(vf)
}
step := CalculateContinuousTickStep(r, ra, true, ya.Style.InheritFrom(defaults), vf)
return GenerateContinuousTicksWithStep(ra, step, vf)
return GenerateContinuousTicksWithStep(ra, step, vf, true)
}
// GetGridLines returns the gridlines for the axis.