test: add test for charts
This commit is contained in:
parent
212a51083f
commit
6695a3a062
6 changed files with 827 additions and 61 deletions
|
|
@ -60,9 +60,9 @@ type EChartStyle struct {
|
|||
Color string `json:"color"`
|
||||
}
|
||||
|
||||
func (es *EChartStyle) ToStyle() chart.Style {
|
||||
func (es *EChartStyle) ToStyle() Style {
|
||||
color := parseColor(es.Color)
|
||||
return chart.Style{
|
||||
return Style{
|
||||
FillColor: color,
|
||||
FontColor: color,
|
||||
StrokeColor: color,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue