Add factory dashboard SignalR integration

This commit is contained in:
zhougf committed 2026-06-01 21:48:29 +08:00
1 parent 1331d10e31
commit 2b5081061e
12 files changed
+1018 -47

No files matched your search

+4
View File
@@ -11,6 +11,7 @@ type AxisChartInput = {
values: number[]
name?: string
color?: string
step?: 'start' | 'middle' | 'end'
}
type MultiSeriesInput = {
@@ -19,6 +20,7 @@ type MultiSeriesInput = {
name: string
values: number[]
color?: string
step?: 'start' | 'middle' | 'end'
}>
}
@@ -107,6 +109,7 @@ export function createLineOption(input: AxisChartInput | MultiSeriesInput): ECha
name: item.name,
type: 'line' as const,
smooth: true,
step: item.step,
data: item.values,
areaStyle: { color: `${item.color ?? '#63a4ff'}22` },
lineStyle: { color: item.color ?? '#63a4ff', width: 3 },
@@ -117,6 +120,7 @@ export function createLineOption(input: AxisChartInput | MultiSeriesInput): ECha
name: input.name,
type: 'line' as const,
smooth: true,
step: input.step,
data: input.values,
areaStyle: { color: `${input.color ?? '#63a4ff'}22` },
lineStyle: { color: input.color ?? '#63a4ff', width: 3 },