forked from github/dataease
commit
9f37d7b6cb
@ -150,7 +150,7 @@ public class RaceBarService extends ViewPluginService {
|
|||||||
data.forEach(ss -> {
|
data.forEach(ss -> {
|
||||||
xs.add(ss[encode.get("y")]);
|
xs.add(ss[encode.get("y")]);
|
||||||
|
|
||||||
String key = ss[(Integer) map.get("extIndex")];
|
String key = StringUtils.defaultString(ss[(Integer) map.get("extIndex")], StringUtils.EMPTY);
|
||||||
if (!keySet.contains(key)) {
|
if (!keySet.contains(key)) {
|
||||||
keySet.add(key);
|
keySet.add(key);
|
||||||
keyList.add(key);
|
keyList.add(key);
|
||||||
@ -160,7 +160,7 @@ public class RaceBarService extends ViewPluginService {
|
|||||||
|
|
||||||
|
|
||||||
Map<String, List<String[]>> groupData = data.stream().collect(Collectors.toMap(
|
Map<String, List<String[]>> groupData = data.stream().collect(Collectors.toMap(
|
||||||
k -> k[(Integer) map.get("extIndex")],
|
k -> StringUtils.defaultString(k[(Integer) map.get("extIndex")], StringUtils.EMPTY),
|
||||||
v -> {
|
v -> {
|
||||||
List<String[]> list = new ArrayList<>();
|
List<String[]> list = new ArrayList<>();
|
||||||
list.add(v);
|
list.add(v);
|
||||||
@ -179,6 +179,7 @@ public class RaceBarService extends ViewPluginService {
|
|||||||
|
|
||||||
map.put("xs", xs);
|
map.put("xs", xs);
|
||||||
|
|
||||||
|
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user