From e518195d10ed22556f4d863b60f42e990b84defd Mon Sep 17 00:00:00 2001 From: Piotr Rogowski Date: Fri, 24 Dec 2021 13:54:03 +0100 Subject: [PATCH] Canvas fixes (#344) * Show points on Curve * Fix scale in tooth logs --- src/components/Dialog/Curve.tsx | 2 +- src/components/TriggerLog/ToothCanvas.tsx | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/Dialog/Curve.tsx b/src/components/Dialog/Curve.tsx index d92a9ad..faf2b37 100644 --- a/src/components/Dialog/Curve.tsx +++ b/src/components/Dialog/Curve.tsx @@ -65,7 +65,7 @@ const Curve = ({ { label: yLabel, value: (_self, val) => `${val.toLocaleString()}${yUnits}`, - points: { show: false }, + points: { show: true }, stroke: Colors.ACCENT, width: 2, }, diff --git a/src/components/TriggerLog/ToothCanvas.tsx b/src/components/TriggerLog/ToothCanvas.tsx index becc308..b3625ea 100644 --- a/src/components/TriggerLog/ToothCanvas.tsx +++ b/src/components/TriggerLog/ToothCanvas.tsx @@ -57,6 +57,7 @@ const ToothCanvas = ({ data, width, height }: Props) => { fill: Colors.ACCENT, value: (_self, rawValue) => `${rawValue.toLocaleString()}μs`, paths: bars!({ size: [0.6, 100] }), + scale: 'toothTime', }, ], axes: [ @@ -68,6 +69,7 @@ const ToothCanvas = ({ data, width, height }: Props) => { label: '', stroke: Colors.TEXT, grid: { stroke: Colors.MAIN_LIGHT }, + scale: 'toothTime', }, ], cursor: {