Merge pull request #13 from wcharczuk/text-rotation
Adds `TextRotationDegrees`
This commit is contained in:
commit
27a5efdd2d
23 changed files with 546 additions and 114 deletions
|
|
@ -54,9 +54,7 @@ func Legend(c *Chart, userDefaults ...Style) Renderable {
|
|||
Bottom: legend.Top + legendPadding.Top,
|
||||
}
|
||||
|
||||
r.SetFont(legendStyle.GetFont())
|
||||
r.SetFontColor(legendStyle.GetFontColor())
|
||||
r.SetFontSize(legendStyle.GetFontSize())
|
||||
legendStyle.GetTextOptions().WriteToRenderer(r)
|
||||
|
||||
// measure
|
||||
labelCount := 0
|
||||
|
|
@ -79,6 +77,8 @@ func Legend(c *Chart, userDefaults ...Style) Renderable {
|
|||
|
||||
Draw.Box(r, legend, legendStyle)
|
||||
|
||||
legendStyle.GetTextOptions().WriteToRenderer(r)
|
||||
|
||||
ycursor := legendContent.Top
|
||||
tx := legendContent.Left
|
||||
legendCount := 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue