refactor: use MaxInt32 instead of MaxInt

This commit is contained in:
vicanso 2022-09-15 20:15:05 +08:00
parent 50605907c7
commit 825e65d930
2 changed files with 2 additions and 2 deletions

View file

@ -118,7 +118,7 @@ func (l *lineChart) render(result *defaultRenderResult, seriesList SeriesList) (
for i, item := range series.Data {
h := yRange.getRestHeight(item.Value)
if item.Value == nullValue {
h = math.MaxInt
h = int(math.MaxInt32)
}
p := Point{
X: xValues[i],