gridlines.

This commit is contained in:
Will Charczuk 2016-07-12 19:14:14 -07:00
parent 28f01842de
commit 249e9956d0
9 changed files with 141 additions and 15 deletions

View file

@ -24,8 +24,9 @@ type Chart struct {
YAxis YAxis
YAxisSecondary YAxis
Font *truetype.Font
Series []Series
Font *truetype.Font
Series []Series
Elements []Renderable
}
// GetDPI returns the dpi for the chart.
@ -100,6 +101,10 @@ func (c Chart) Render(rp RendererProvider, w io.Writer) error {
}
c.drawTitle(r)
for _, a := range c.Elements {
a(r, canvasBox)
}
return r.Save(w)
}