feat: support painter for chart draw function

This commit is contained in:
vicanso 2022-05-15 15:07:03 +08:00
parent 7e2f112eea
commit 5068828ca7
4 changed files with 802 additions and 5 deletions

View file

@ -24,18 +24,17 @@ package charts
import (
"github.com/wcharczuk/go-chart/v2"
"github.com/wcharczuk/go-chart/v2/drawing"
)
type LineStyle struct {
ClassName string
StrokeDashArray []float64
StrokeColor drawing.Color
StrokeColor Color
StrokeWidth float64
FillColor drawing.Color
FillColor Color
DotWidth float64
DotColor drawing.Color
DotFillColor drawing.Color
DotColor Color
DotFillColor Color
}
func (ls *LineStyle) Style() chart.Style {