feat: support painter for chart draw function
This commit is contained in:
parent
7e2f112eea
commit
5068828ca7
4 changed files with 802 additions and 5 deletions
9
line.go
9
line.go
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue