forked from github/dataease
Merge pull request #602 from dataease/pr@dev@feat_stackDrill
feat: 堆叠图下钻
This commit is contained in:
commit
38c3b28672
@ -696,11 +696,15 @@ public class ChartViewService {
|
||||
String stackColumn = row[xAxis.size()];
|
||||
if (StringUtils.equals(ss.getName(), stackColumn)) {
|
||||
StringBuilder a = new StringBuilder();
|
||||
for (int j = 0; j < xAxis.size(); j++) {
|
||||
if (j == xAxis.size() - 1) {
|
||||
a.append(row[j]);
|
||||
} else {
|
||||
a.append(row[j]).append("\n");
|
||||
if (isDrill) {
|
||||
a.append(row[xAxis.size() - 1]);
|
||||
} else {
|
||||
for (int j = 0; j < xAxis.size(); j++) {
|
||||
if (j == xAxis.size() - 1) {
|
||||
a.append(row[j]);
|
||||
} else {
|
||||
a.append(row[j]).append("\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
if (StringUtils.equals(a.toString(), x.get(i))) {
|
||||
|
Loading…
Reference in New Issue
Block a user