refactor: use MaxInt32 instead of MaxInt
This commit is contained in:
parent
50605907c7
commit
825e65d930
2 changed files with 2 additions and 2 deletions
|
|
@ -118,7 +118,7 @@ func (l *lineChart) render(result *defaultRenderResult, seriesList SeriesList) (
|
||||||
for i, item := range series.Data {
|
for i, item := range series.Data {
|
||||||
h := yRange.getRestHeight(item.Value)
|
h := yRange.getRestHeight(item.Value)
|
||||||
if item.Value == nullValue {
|
if item.Value == nullValue {
|
||||||
h = math.MaxInt
|
h = int(math.MaxInt32)
|
||||||
}
|
}
|
||||||
p := Point{
|
p := Point{
|
||||||
X: xValues[i],
|
X: xValues[i],
|
||||||
|
|
|
||||||
|
|
@ -442,7 +442,7 @@ func (p *Painter) LineStroke(points []Point) *Painter {
|
||||||
for index, point := range points {
|
for index, point := range points {
|
||||||
x := point.X
|
x := point.X
|
||||||
y := point.Y
|
y := point.Y
|
||||||
if y == math.MaxInt {
|
if y == int(math.MaxInt32) {
|
||||||
p.Stroke()
|
p.Stroke()
|
||||||
shouldMoveTo = true
|
shouldMoveTo = true
|
||||||
continue
|
continue
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue