Skip to content

Commit a156f70

Browse files
committedJan 23, 2025
switch to penguin fields
1 parent c8f82fa commit a156f70

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed
 

‎src/components/HelloWorld.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ defineProps({
2828
type: 'GoGComponent',
2929
mark: 'point',
3030
encoding: {
31-
x: { source: 'donors', field: 'weight_value' },
32-
y: { source: 'donors', field: 'height_value' },
31+
x: { source: 'penguins', field: 'bill_length_mm' },
32+
y: { source: 'penguins', field: 'flipper_length_mm' },
3333
},
3434
},
3535
}"

‎src/components/ParserComponent.stories.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ export const Default = {
2929
type: 'GoGComponent',
3030
mark: 'point',
3131
encoding: {
32-
x: { source: 'donors', field: 'weight_value' },
33-
y: { source: 'donors', field: 'height_value' },
32+
x: { source: 'penguins', field: 'bill_length_mm' },
33+
y: { source: 'penguins', field: 'flipper_length_mm' },
3434
},
3535
},
3636
},

‎src/stores/DataSourcesStore.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export interface DataSourcesState {
1414
}
1515

1616
export const useDataSourcesStore = defineStore('DataSourcesStore', () => {
17-
const dataSources = ref<DataSourcesState[]>({});
17+
const dataSources = ref<DataSourcesState>({});
1818
// let connection = null;
1919
// let db = null;
2020
// init().then(async (value: DuckDB) => {
@@ -33,7 +33,7 @@ export const useDataSourcesStore = defineStore('DataSourcesStore', () => {
3333
console.log(dataSources.value);
3434
}
3535

36-
function getDataSource(key: string): DataSource | null {
36+
function getDataSource(key: string): DataInterface | null {
3737
if (!(key in dataSources.value)) return null;
3838
return dataSources.value[key];
3939
}

0 commit comments

Comments
 (0)
Please sign in to comment.