An open source alternative to Tableau. Embeddable visual analytic
TypeScript bidatadata-analysisdata-miningdata-visualizationedak6skanarieslow-codepivot-tablereacttableautableau-alternativetypescriptvegavega-litevisualization
Fixing a typo
kushie0c90837a7b7d7
diff --git a/packages/graphic-walker/src/interfaces.ts b/packages/graphic-walker/src/interfaces.tsindex 60718ff3..eb7ece0d 100644--- a/packages/graphic-walker/src/interfaces.ts+++ b/packages/graphic-walker/src/interfaces.ts@@ -86,7 +86,7 @@ export interface IField {analyticType: IAnalyticType;cmp?: (a: any, b: any) => number;computed?: boolean;- expressoion?: IExpression;+ expression?: IExpression;}export interface IViewField extends IField {diff --git a/packages/graphic-walker/src/store/visualSpecStore.ts b/packages/graphic-walker/src/store/visualSpecStore.tsindex 5082a75a..f6367c5a 100644--- a/packages/graphic-walker/src/store/visualSpecStore.ts+++ b/packages/graphic-walker/src/store/visualSpecStore.ts@@ -496,7 +496,7 @@ export class VizSpecStore {semanticType: "ordinal",analyticType: "dimension",computed: true,- expressoion: {+ expression: {op: binType,as: newVarKey,params: [@@ -526,7 +526,7 @@ export class VizSpecStore {analyticType: originField.analyticType,aggName: 'sum',computed: true,- expressoion: {+ expression: {op: scaleType,as: newVarKey,params: [diff --git a/packages/graphic-walker/src/utils/index.ts b/packages/graphic-walker/src/utils/index.tsindex 3cb1fabc..eba9ada0 100644--- a/packages/graphic-walker/src/utils/index.ts+++ b/packages/graphic-walker/src/utils/index.ts@@ -246,7 +246,7 @@ export function createCountField(): IViewField {semanticType: "quantitative",aggName: 'sum',computed: true,- expressoion: {+ expression: {op: 'one',params: [],as: COUNT_FIELD_ID,diff --git a/packages/graphic-walker/src/workers/transform.ts b/packages/graphic-walker/src/workers/transform.tsindex 1f7a4751..368fcdd1 100644--- a/packages/graphic-walker/src/workers/transform.ts+++ b/packages/graphic-walker/src/workers/transform.ts@@ -6,7 +6,7 @@ export function transformData(data: IRow[], columns: IField[]) {let df = dataset2DataFrame(data, columns);for (let i = 0; i < computedFields.length; i++) {const field = computedFields[i];- df = execExpression(field.expressoion!, df, columns);+ df = execExpression(field.expression!, df, columns);}return dataframe2Dataset(df, columns);}