新增connectNulls属性,即使存在空值情况下也连接折线

This commit is contained in:
JIANG
2025-12-22 16:34:17 +08:00
parent 716ff28898
commit 37e8e65791
2 changed files with 14 additions and 12 deletions

View File

@@ -608,6 +608,7 @@ const SCADADataPanel: React.FC<SCADADataPanelProps> = ({
type: "line",
symbol: "none",
sampling: "lttb",
connectNulls: true,
itemStyle: {
color: colors[(index * 4 + sIndex) % colors.length],
},
@@ -635,6 +636,7 @@ const SCADADataPanel: React.FC<SCADADataPanelProps> = ({
type: "line",
symbol: "none",
sampling: "lttb",
connectNulls: true,
itemStyle: { color: colors[index % colors.length] },
data: dataset.map((item) => item[id]),
areaStyle: {