refactor: enhance chart render function

This commit is contained in:
vicanso 2022-06-17 23:37:21 +08:00
parent 65a1cb11ad
commit 38c4978e44
20 changed files with 665 additions and 462 deletions

View file

@ -52,7 +52,7 @@ type HorizontalBarChartOption struct {
func NewHorizontalBarChart(p *Painter, opt HorizontalBarChartOption) *horizontalBarChart {
if opt.Theme == nil {
opt.Theme = NewTheme("")
opt.Theme = defaultTheme
}
return &horizontalBarChart{
p: p,