Merge pull request #10733 from dataease/pr@dev-v2@fix_stack_chart_detail

fix(图表): 堆叠图详情显示错误
This commit is contained in:
wisonic-s 2024-07-02 19:54:39 +08:00 committed by GitHub
commit 00fd92b544
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -128,6 +128,9 @@ public class DefaultChartHandler extends AbstractChartPlugin {
var yAxis = formatResult.getAxisMap().get(ChartAxis.yAxis);
// 如果是表格导出查询 则在此处直接就可以返回
var extStack = formatResult.getAxisMap().get(ChartAxis.extStack);
if (CollectionUtils.isNotEmpty(extStack) && xAxis.size() > extStack.size()) {
xAxis = xAxis.subList(0, xAxis.size() - extStack.size());
}
if (view.getIsExcelExport()) {
Map<String, Object> sourceInfo = ChartDataBuild.transTableNormal(xAxis, yAxis, view, calcResult.getOriginData(), extStack, desensitizationList);
sourceInfo.put("sourceData", calcResult.getOriginData());