mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 13:32:18 +08:00
fix(图表): 修复堆叠折线图在不拖入堆叠字段时,无法累加指标进行显示的问题
This commit is contained in:
committed by
xuwei-fit2cloud
parent
cd435f2305
commit
2e344152b6
@@ -525,7 +525,9 @@ public class DefaultChartHandler extends AbstractChartPlugin {
|
||||
if (CollectionUtils.isEmpty(data)) {
|
||||
break;
|
||||
}
|
||||
if (StringUtils.containsAny(chartType, "group", "stack")) {
|
||||
boolean isStack = StringUtils.containsIgnoreCase(chartType, "stack") && !extStack.isEmpty();
|
||||
boolean isGroup = StringUtils.containsIgnoreCase(chartType, "group") && !xAxisExt.isEmpty();
|
||||
if (isStack || isGroup) {
|
||||
if (CollectionUtils.isEmpty(xAxis)) {
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user