fix: fix overflow point

This commit is contained in:
vicanso 2022-02-19 17:44:46 +08:00
parent bbbdbe7c5e
commit 28bb9c57bc
3 changed files with 10 additions and 4 deletions

View file

@ -98,7 +98,7 @@ func barChartRender(opt barChartOption, result *basicRenderResult) ([]markPointR
})
divideValues := xRange.AutoDivide()
for j, item := range series.Data {
if j >= len(divideValues) {
if j >= xRange.divideCount {
continue
}
x := divideValues[j]