feat: support mark point for line chart
This commit is contained in:
parent
524eb79a8e
commit
c0bb1654c2
11 changed files with 148 additions and 16 deletions
2
chart.go
2
chart.go
|
|
@ -43,6 +43,7 @@ type Point struct {
|
|||
}
|
||||
|
||||
type ChartOption struct {
|
||||
Type string
|
||||
Font *truetype.Font
|
||||
Theme string
|
||||
Title TitleOption
|
||||
|
|
@ -271,6 +272,7 @@ func Render(opt ChartOption) (*Draw, error) {
|
|||
func chartBasicRender(opt *ChartOption) (*basicRenderResult, error) {
|
||||
d, err := NewDraw(
|
||||
DrawOption{
|
||||
Type: opt.Type,
|
||||
Parent: opt.Parent,
|
||||
Width: opt.getWidth(),
|
||||
Height: opt.getHeight(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue