From 865b01f48dd1b2c9b9943cda8555f7e67f91e3d6 Mon Sep 17 00:00:00 2001 From: Conor Barnes Date: Wed, 24 Aug 2022 13:57:35 -0300 Subject: [PATCH] significant digits on hover value --- packages/components/src/lib/distributionSpecBuilder.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/components/src/lib/distributionSpecBuilder.ts b/packages/components/src/lib/distributionSpecBuilder.ts index 5fdc0803..228159ab 100644 --- a/packages/components/src/lib/distributionSpecBuilder.ts +++ b/packages/components/src/lib/distributionSpecBuilder.ts @@ -311,7 +311,7 @@ export function buildVegaSpec( "align": {"value": "right"} }, "update": { - "text": {"signal": "position_scaled ? position_scaled : ''", } + "text": {"signal": "position_scaled ? format(position_scaled, ',.4r') : ''", } } } },