docs: update documents
This commit is contained in:
parent
92458aece2
commit
706896737b
18 changed files with 83 additions and 18 deletions
2
xaxis.go
2
xaxis.go
|
|
@ -53,6 +53,7 @@ type XAxisOption struct {
|
|||
|
||||
const defaultXAxisHeight = 30
|
||||
|
||||
// NewXAxisOption returns a x axis option
|
||||
func NewXAxisOption(data []string, boundaryGap ...*bool) XAxisOption {
|
||||
opt := XAxisOption{
|
||||
Data: data,
|
||||
|
|
@ -89,6 +90,7 @@ func (opt *XAxisOption) ToAxisOption() AxisOption {
|
|||
return axisOpt
|
||||
}
|
||||
|
||||
// NewBottomXAxis returns a bottom x axis renderer
|
||||
func NewBottomXAxis(p *Painter, opt XAxisOption) *axisPainter {
|
||||
return NewAxisPainter(p, opt.ToAxisOption())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue