新增connectNulls属性,即使存在空值情况下也连接折线
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user