@malloydata/render 0.0.182-dev240912152159 → 0.0.182-dev240913003314
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/component/bar-chart/generate-bar_chart-vega-lite-spec.d.ts +4 -0
- package/dist/component/bar-chart/get-bar_chart-settings.d.ts +14 -0
- package/dist/component/chart-settings.d.ts +4 -1
- package/dist/component/plot/util.d.ts +1 -0
- package/dist/component/types.d.ts +1 -0
- package/dist/register/register.mjs +15822 -15826
- package/dist/register/register.umd.js +276 -276
- package/dist/stories/bars.stories.d.ts +6 -0
- package/dist/webcomponent/malloy-render.mjs +15822 -15826
- package/dist/webcomponent/malloy-render.umd.js +276 -276
- package/package.json +2 -2
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Explore, Tag } from '@malloydata/malloy';
|
|
2
|
+
import { BarChartSettings } from './get-bar_chart-settings';
|
|
3
|
+
import { RenderResultMetadata, VegaChartProps } from '../types';
|
|
4
|
+
export declare function generateBarChartVegaLiteSpec(explore: Explore, settings: BarChartSettings, metadata: RenderResultMetadata, chartTag: Tag): VegaChartProps;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Explore, Tag } from '@malloydata/malloy';
|
|
2
|
+
import { Channel } from '../plot/plot-spec';
|
|
3
|
+
export type BarChartSettings = {
|
|
4
|
+
xChannel: Channel;
|
|
5
|
+
yChannel: Channel;
|
|
6
|
+
seriesChannel: Channel;
|
|
7
|
+
isStack: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare function getBarChartSettings(explore: Explore, tagOverride?: Tag): {
|
|
10
|
+
xChannel: Channel;
|
|
11
|
+
yChannel: Channel;
|
|
12
|
+
seriesChannel: Channel;
|
|
13
|
+
isStack: boolean;
|
|
14
|
+
};
|
|
@@ -31,4 +31,7 @@ export type ChartSettings = {
|
|
|
31
31
|
totalWidth: number;
|
|
32
32
|
totalHeight: number;
|
|
33
33
|
};
|
|
34
|
-
export declare function getChartSettings(field: Explore | ExploreField, metadata: RenderResultMetadata, chartTag: Tag
|
|
34
|
+
export declare function getChartSettings(field: Explore | ExploreField, metadata: RenderResultMetadata, chartTag: Tag, options?: {
|
|
35
|
+
xField?: Field;
|
|
36
|
+
yField?: Field;
|
|
37
|
+
}): ChartSettings;
|
|
@@ -3,3 +3,4 @@ export declare function walkFields(e: Explore, cb: (f: Field) => void): void;
|
|
|
3
3
|
export declare function getFieldPathArrayFromRoot(f: Field | Explore): string[];
|
|
4
4
|
export declare function getFieldPathFromRoot(f: Field | Explore): string;
|
|
5
5
|
export declare function getFieldPathBetweenFields(parentField: Field | Explore, childField: Field | Explore): string;
|
|
6
|
+
export declare function getFieldFromRootPath(root: Explore, path: string): Field;
|