refactor: enhance chart render function
This commit is contained in:
parent
65a1cb11ad
commit
38c4978e44
20 changed files with 665 additions and 462 deletions
|
|
@ -53,7 +53,7 @@ type PieChartOption struct {
|
|||
|
||||
func NewPieChart(p *Painter, opt PieChartOption) *pieChart {
|
||||
if opt.Theme == nil {
|
||||
opt.Theme = NewTheme("")
|
||||
opt.Theme = defaultTheme
|
||||
}
|
||||
return &pieChart{
|
||||
p: p,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue