Skip to content

An open source alternative to Tableau. Embeddable visual analytic

fix: fix non-quantitative measure

ObservedObserver3f5c29e12a5a
diff --git a/packages/graphic-walker/src/vis/react-vega.tsx b/packages/graphic-walker/src/vis/react-vega.tsx
index 19352854..ae5d7750 100644
--- a/packages/graphic-walker/src/vis/react-vega.tsx
+++ b/packages/graphic-walker/src/vis/react-vega.tsx
@@ -130,6 +130,9 @@ function channelEncode(props: EncodeProps) {
// do not aggregate this field
encoding[c].aggregate = null;
}
+ if (props[c].analyticType === 'measure') {
+ encoding[c].type = 'quantitative'
+ }
}
})
// FIXME: temporal fix, only for x and y relative order