refactor: support max and min echarts option for funnel

This commit is contained in:
vicanso 2022-03-05 20:42:49 +08:00
parent 58aa096ae1
commit 82e05eec64

View file

@ -305,6 +305,8 @@ type EChartsSeries struct {
Label EChartsLabelOption `json:"label"` Label EChartsLabelOption `json:"label"`
MarkPoint EChartsMarkPoint `json:"markPoint"` MarkPoint EChartsMarkPoint `json:"markPoint"`
MarkLine EChartsMarkLine `json:"markLine"` MarkLine EChartsMarkLine `json:"markLine"`
Max *float64 `json:"max"`
Min *float64 `json:"min"`
} }
type EChartsSeriesList []EChartsSeries type EChartsSeriesList []EChartsSeries
@ -338,6 +340,8 @@ func (esList EChartsSeriesList) ToSeriesList() SeriesList {
Name: dataItem.Name, Name: dataItem.Name,
Type: item.Type, Type: item.Type,
Data: NewSeriesDataFromValues(dataItem.Value.values), Data: NewSeriesDataFromValues(dataItem.Value.values),
Max: item.Max,
Min: item.Min,
}) })
} }
continue continue