feat: support bar chart render
This commit is contained in:
parent
8a5990fe8f
commit
b69728dd12
11 changed files with 408 additions and 50 deletions
6
axis.go
6
axis.go
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue