Skip to content

An open source alternative to Tableau. Embeddable visual analytic

fix(tooltip): used fields before aggr

AntoineYANG07aee7e70a07
diff --git a/packages/graphic-walker/src/vis/spec/view.ts b/packages/graphic-walker/src/vis/spec/view.ts
index 4b279e96..27bf8066 100644
--- a/packages/graphic-walker/src/vis/spec/view.ts
+++ b/packages/graphic-walker/src/vis/spec/view.ts
@@ -64,10 +64,10 @@ export function getSingleView(props: SingleViewProps) {
details,
text
});
- addTooltipEncode(encoding, details)
if (defaultAggregated) {
channelAggregate(encoding, fields);
}
+ addTooltipEncode(encoding, details);
channelStack(encoding, stack);
const mark = {
type: markType,