mirror of
https://github.com/dataease/dataease.git
synced 2026-06-13 01:01:20 +08:00
fix: antv散点图空值处理错误
This commit is contained in:
@@ -329,7 +329,12 @@ public class ChartDataBuild {
|
||||
AxisChartDataAntVDTO axisChartDataDTO = new AxisChartDataAntVDTO();
|
||||
|
||||
if (xIsNumber) {
|
||||
axisChartDataDTO.setX(new BigDecimal(a.toString()));
|
||||
BigDecimal v = null;
|
||||
try {
|
||||
v = new BigDecimal(a.toString());
|
||||
} catch (Exception ignore) {
|
||||
}
|
||||
axisChartDataDTO.setX(v);
|
||||
} else {
|
||||
axisChartDataDTO.setX(a.toString());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user