chore: supper grid renderer
This commit is contained in:
parent
622bd8491b
commit
7ee13fe914
5 changed files with 121 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue