Showing
1 changed file
with
1 additions
and
1 deletions
@@ -44,7 +44,7 @@ const onReceiveDataSourceMessage = (commandSource: CommandSource, message: Subsc | @@ -44,7 +44,7 @@ const onReceiveDataSourceMessage = (commandSource: CommandSource, message: Subsc | ||
44 | const { latestValue } = useLatestMessageValue(message.data, (attr as string)) | 44 | const { latestValue } = useLatestMessageValue(message.data, (attr as string)) |
45 | unref(chartInstance)?.setOption({ | 45 | unref(chartInstance)?.setOption({ |
46 | series: [{ | 46 | series: [{ |
47 | - data: [{ value: latestValue }], | 47 | + data: [{ value: latestValue ?? 0 }], |
48 | 48 | ||
49 | }], | 49 | }], |
50 | title: { | 50 | title: { |