Browse Source

CHART-13116 自定义匹配时把匹配数据转换为String

feature/big-screen
白岳 5 years ago
parent
commit
76aa8a08d3
  1. 2
      designer-chart/src/main/java/com/fr/design/chartx/component/MapAreaMatchPane.java

2
designer-chart/src/main/java/com/fr/design/chartx/component/MapAreaMatchPane.java

@ -247,7 +247,7 @@ public class MapAreaMatchPane extends BasicBeanPane<MapMatchResult> {
HashSet<Object> columnData = new LinkedHashSet<>(); HashSet<Object> columnData = new LinkedHashSet<>();
for (int i = 0; i < size; i++) { for (int i = 0; i < size; i++) {
Object valueAt = dataModel.getValueAt(i, colIndex); Object valueAt = dataModel.getValueAt(i, colIndex);
columnData.add(valueAt == null ? StringUtils.EMPTY : valueAt); columnData.add(GeneralUtils.objectToString(valueAt));
} }
return columnData.toArray(); return columnData.toArray();
} catch (TableDataException ignore) { } catch (TableDataException ignore) {

Loading…
Cancel
Save