mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 05:22:13 +08:00
fix(图表): 修复子弹图,当实际值与目标值中任意字段与区间字段是同一个字段时,字段数据被求和的问题
This commit is contained in:
committed by
jianneng-fit2cloud
parent
5e31475a67
commit
f9a7407eeb
@@ -15,6 +15,7 @@ import org.springframework.stereotype.Component;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
|
||||
@Component
|
||||
public class BulletGraphHandler extends YoyChartHandler {
|
||||
@@ -26,7 +27,12 @@ public class BulletGraphHandler extends YoyChartHandler {
|
||||
var result = super.formatAxis(view);
|
||||
var yAxis = result.getAxisMap().get(ChartAxis.yAxis);
|
||||
yAxis.addAll(view.getYAxisExt());
|
||||
yAxis.addAll(view.getExtBubble());
|
||||
if (!view.getExtBubble().isEmpty()
|
||||
&& !Objects.equals(view.getExtBubble().getFirst().getId(), view.getYAxisExt().getFirst().getId())
|
||||
&& !Objects.equals(view.getExtBubble().getFirst().getId(), view.getYAxis().getFirst().getId())) {
|
||||
yAxis.addAll(view.getExtBubble());
|
||||
result.getAxisMap().put(ChartAxis.extBubble, view.getExtBubble());
|
||||
}
|
||||
yAxis.addAll(view.getExtTooltip());
|
||||
result.getAxisMap().put(ChartAxis.yAxis, yAxis);
|
||||
result.getAxisMap().put(ChartAxis.yAxisExt, view.getYAxisExt());
|
||||
|
||||
Reference in New Issue
Block a user