feat: support null value for line chart
This commit is contained in:
parent
bb9af986be
commit
50605907c7
5 changed files with 32 additions and 2 deletions
|
|
@ -165,6 +165,10 @@ func (sl SeriesList) GetMaxMin(axisIndex int) (float64, float64) {
|
|||
continue
|
||||
}
|
||||
for _, item := range series.Data {
|
||||
// 如果为空值,忽略
|
||||
if item.Value == nullValue {
|
||||
continue
|
||||
}
|
||||
if item.Value > max {
|
||||
max = item.Value
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue