chore: supper grid renderer

This commit is contained in:
vicanso 2022-06-03 21:06:40 +08:00
parent 622bd8491b
commit 7ee13fe914
5 changed files with 121 additions and 2 deletions

View file

@ -409,6 +409,19 @@ func main() {
Bottom: 20,
})
top += 50
charts.NewGridPainter(p.Child(charts.PainterBoxOption(charts.Box{
Top: top,
Left: 1,
Right: p.Width() - 1,
Bottom: top + 100,
})), charts.GridPainterOption{
Row: 5,
IgnoreFirstRow: true,
IgnoreLastRow: true,
StrokeColor: drawing.ColorBlue,
}).Render()
buf, err := p.Bytes()
if err != nil {
panic(err)