refactor: support dark theme

This commit is contained in:
vicanso 2021-12-18 07:59:37 +08:00
parent 8f7587561f
commit ead48fef8e
7 changed files with 568 additions and 95 deletions

View file

@ -36,6 +36,7 @@ type Series struct {
Name string
Data []SeriesData
XValues []float64
YAxis chart.YAxisType
}
const lineStrokeWidth = 2
@ -102,6 +103,7 @@ func GetSeries(series []Series, tickPosition chart.TickPosition, theme string) [
Style: style,
YValues: yValues,
TickPosition: tickPosition,
YAxis: item.YAxis,
}
// TODO 判断类型
switch item.Type {