Merge pull request #502 from dataease/pr@dev@refactor_堆叠柱状图优化

refactor: 堆叠图优化
This commit is contained in:
XiaJunjie2020 2021-08-03 16:13:14 +08:00 committed by GitHub
commit ab1133a5e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -494,7 +494,12 @@ public class ChartViewService {
}
}
if (StringUtils.equals(a.toString(), x.get(i))) {
ss.getData().set(i, new BigDecimal(row[xAxis.size() + extStack.size()]));
if (row.length > xAxis.size() + extStack.size()) {
String s = row[xAxis.size() + extStack.size()];
if (StringUtils.isNotEmpty(s)) {
ss.getData().set(i, new BigDecimal(s));
}
}
break;
}
}