Merge pull request #13 from wcharczuk/text-rotation

Adds `TextRotationDegrees`
This commit is contained in:
Will Charczuk 2016-10-21 12:53:01 -07:00 committed by GitHub
commit 27a5efdd2d
23 changed files with 546 additions and 114 deletions

View file

@ -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