Merge pull request #12146 from dataease/pr@dev-v2@chart-table-yoy-fix

fix(图表): 修复汇总表以及透视表的同环比,通过组件过滤器过滤数据时,先过滤数据再进行同环比的问题
This commit is contained in:
jianneng-fit2cloud 2024-09-11 14:08:17 +08:00 committed by GitHub
commit 2950275ce4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 16 additions and 1 deletions

View File

@ -8,7 +8,7 @@ import io.dataease.extensions.view.dto.ChartViewFieldDTO;
import java.util.ArrayList;
public class GroupChartHandler extends DefaultChartHandler {
public class GroupChartHandler extends YoyChartHandler {
@Override
public AxisFormatResult formatAxis(ChartViewDTO view) {
var result = super.formatAxis(view);

View File

@ -0,0 +1,15 @@
package io.dataease.chart.charts.impl.table;
import io.dataease.chart.charts.impl.YoyChartHandler;
import lombok.Getter;
import org.springframework.stereotype.Component;
/**
* @author jianneng
* @date 2024/9/11 11:37
**/
@Component
public class TableNormalHandler extends YoyChartHandler {
@Getter
private String type = "table-normal";
}