docs: update documents
This commit is contained in:
parent
92458aece2
commit
706896737b
18 changed files with 83 additions and 18 deletions
|
|
@ -27,6 +27,7 @@ import (
|
|||
"github.com/wcharczuk/go-chart/v2"
|
||||
)
|
||||
|
||||
// NewMarkLine returns a series mark line
|
||||
func NewMarkLine(markLineTypes ...string) SeriesMarkLine {
|
||||
data := make([]SeriesMarkData, len(markLineTypes))
|
||||
for index, t := range markLineTypes {
|
||||
|
|
@ -48,6 +49,7 @@ func (m *markLinePainter) Add(opt markLineRenderOption) {
|
|||
m.options = append(m.options, opt)
|
||||
}
|
||||
|
||||
// NewMarkLinePainter returns a mark line renderer
|
||||
func NewMarkLinePainter(p *Painter) *markLinePainter {
|
||||
return &markLinePainter{
|
||||
p: p,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue