Canvas fixes (#344)

* Show points on Curve

* Fix scale in tooth logs
This commit is contained in:
Piotr Rogowski 2021-12-24 13:54:03 +01:00 committed by GitHub
parent e132eafcb0
commit e518195d10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -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,
},

View File

@ -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: {