gridlines.
This commit is contained in:
parent
28f01842de
commit
249e9956d0
9 changed files with 141 additions and 15 deletions
9
chart.go
9
chart.go
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue