test: add test for legend, series and theme

This commit is contained in:
vicanso 2021-12-23 23:20:20 +08:00
parent a128a2513c
commit c289ba7cde
11 changed files with 828 additions and 43 deletions

View file

@ -108,7 +108,6 @@ func GetSeries(series []Series, tickPosition chart.TickPosition, theme string) [
if item.YAxisIndex != 0 {
baseSeries.YAxis = chart.YAxisPrimary
}
// TODO 判断类型
switch item.Type {
case SeriesBar:
arr[index] = BarSeries{