feat: support bar chart render

This commit is contained in:
vicanso 2022-06-14 23:07:11 +08:00
parent 8a5990fe8f
commit b69728dd12
11 changed files with 408 additions and 50 deletions

View file

@ -28,17 +28,17 @@ import (
type axisPainter struct {
p *Painter
opt *AxisPainterOption
opt *AxisOption
}
func NewAxisPainter(p *Painter, opt AxisPainterOption) *axisPainter {
func NewAxisPainter(p *Painter, opt AxisOption) *axisPainter {
return &axisPainter{
p: p,
opt: &opt,
}
}
type AxisPainterOption struct {
type AxisOption struct {
// The theme of chart
Theme ColorPalette
// The label of axis