fixing svg renderer
This commit is contained in:
parent
b4dfae683d
commit
1e62f7ce3b
4 changed files with 46 additions and 20 deletions
4
yaxis.go
4
yaxis.go
|
|
@ -66,7 +66,9 @@ func (ya YAxis) generateTicksWithStep(ra Range, step float64, vf ValueFormatter)
|
|||
func (ya YAxis) Render(r Renderer, canvasBox Box, ra Range, axisType YAxisType, ticks []Tick) {
|
||||
r.SetStrokeColor(ya.Style.GetStrokeColor(DefaultAxisColor))
|
||||
r.SetStrokeWidth(ya.Style.GetStrokeWidth(DefaultAxisLineWidth))
|
||||
r.SetFontColor(ya.Style.GetFontColor(DefaultAxisColor))
|
||||
|
||||
fontColor := ya.Style.GetFontColor(DefaultAxisColor)
|
||||
r.SetFontColor(fontColor)
|
||||
fontSize := ya.Style.GetFontSize(DefaultFontSize)
|
||||
r.SetFontSize(fontSize)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue