docs: update documents
This commit is contained in:
parent
92458aece2
commit
706896737b
18 changed files with 83 additions and 18 deletions
|
|
@ -36,6 +36,7 @@ type pieChart struct {
|
|||
}
|
||||
|
||||
type PieChartOption struct {
|
||||
// The theme
|
||||
Theme ColorPalette
|
||||
// The font size
|
||||
Font *truetype.Font
|
||||
|
|
@ -51,6 +52,7 @@ type PieChartOption struct {
|
|||
backgroundIsFilled bool
|
||||
}
|
||||
|
||||
// NewPieChart returns a pie chart renderer
|
||||
func NewPieChart(p *Painter, opt PieChartOption) *pieChart {
|
||||
if opt.Theme == nil {
|
||||
opt.Theme = defaultTheme
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue