docs: update documents
This commit is contained in:
parent
92458aece2
commit
706896737b
18 changed files with 83 additions and 18 deletions
|
|
@ -33,6 +33,7 @@ type horizontalBarChart struct {
|
|||
}
|
||||
|
||||
type HorizontalBarChartOption struct {
|
||||
// The theme
|
||||
Theme ColorPalette
|
||||
// The font size
|
||||
Font *truetype.Font
|
||||
|
|
@ -50,6 +51,7 @@ type HorizontalBarChartOption struct {
|
|||
Legend LegendOption
|
||||
}
|
||||
|
||||
// NewHorizontalBarChart returns a horizontal bar chart renderer
|
||||
func NewHorizontalBarChart(p *Painter, opt HorizontalBarChartOption) *horizontalBarChart {
|
||||
if opt.Theme == nil {
|
||||
opt.Theme = defaultTheme
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue