feat: support mark point for line chart

This commit is contained in:
vicanso 2022-02-08 23:16:30 +08:00
parent 524eb79a8e
commit c0bb1654c2
11 changed files with 148 additions and 16 deletions

View file

@ -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(),