Ensure that LegendThin uses the provided style
Enables callers to customize the box style which is currently effectively hardcoded.
This commit is contained in:
parent
962b9abdec
commit
c645525604
1 changed files with 1 additions and 1 deletions
|
@ -179,7 +179,7 @@ func LegendThin(c *Chart, userDefaults ...Style) Renderable {
|
|||
Bottom: legendYMargin + legendBoxHeight,
|
||||
}
|
||||
|
||||
Draw.Box(r, legendBox, legendDefaults)
|
||||
Draw.Box(r, legendBox, legendStyle)
|
||||
|
||||
r.SetFont(legendStyle.GetFont())
|
||||
r.SetFontColor(legendStyle.GetFontColor())
|
||||
|
|
Loading…
Reference in a new issue