Skip to content

Commit

Permalink
fix: missing imports
Browse files Browse the repository at this point in the history
  • Loading branch information
skokenes committed Oct 31, 2024
1 parent c30d898 commit 1ac2677
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
*/

import {Explore, Tag} from '@malloydata/malloy';
import {Channel} from '../plot/plot-spec';
import {getFieldPathBetweenFields, walkFields} from '../plot/util';
import {Channel} from '../types';

export type BarChartSettings = {
xChannel: Channel;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
*/

import {Explore, Tag} from '@malloydata/malloy';
import {Channel} from '../plot/plot-spec';
import {getFieldPathBetweenFields, walkFields} from '../plot/util';
import {Channel} from '../types';

export type LineChartSettings = {
xChannel: Channel;
Expand Down
7 changes: 7 additions & 0 deletions packages/malloy-render/src/component/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,10 @@ export type DataRowWithRecord = QueryDataRow & {
export type MalloyVegaDataRecord = {
__source: QueryDataRow & {__malloyDataRecord: DataRecord};
};

type ScaleType = 'quantitative' | 'nominal';

export type Channel = {
fields: string[];
type: ScaleType | null;
};

0 comments on commit 1ac2677

Please sign in to comment.