add graph legends

This commit is contained in:
2025-01-01 15:06:42 -05:00
parent 6a8e076ee7
commit 28c077b0b2
5 changed files with 81 additions and 4 deletions

View File

@@ -4,6 +4,7 @@ import { provide } from 'vue';
import Graph from '@/components/SvgGraph.vue';
import Axis from '@/components/GraphAxis.vue';
import Line from '@/components/TelemetryLine.vue';
import { GraphSide } from '@/graph/graph';
const websocket = useWebsocket();
provide(WEBSOCKET_SYMBOL, websocket);
@@ -15,6 +16,7 @@ provide(WEBSOCKET_SYMBOL, websocket);
:width="800"
:height="400"
:right_axis="true"
:legend="GraphSide.Left"
>
<Axis>
<Line data="simple_producer/time_offset"></Line>
@@ -27,6 +29,7 @@ provide(WEBSOCKET_SYMBOL, websocket);
:height="400"
:duration="60 * 1000 * 10"
:right_axis="true"
:legend="GraphSide.Right"
>
<Axis>
<Line