@milaboratories/graph-maker 1.1.45 → 1.1.46
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/GraphMaker/constant.d.ts +11 -1
- package/dist/GraphMaker/forms/AxesSettingsForm/HistogramAxesSettingsForm.vue.d.ts +2 -0
- package/dist/GraphMaker/forms/DataMappingForm/HistogramForm.vue.d.ts +2 -0
- package/dist/GraphMaker/forms/LayersForm/Layer/histogram/Bins.vue.d.ts +2 -0
- package/dist/GraphMaker/index.vue.d.ts +63 -1
- package/dist/GraphMaker/store.d.ts +24 -0
- package/dist/GraphMaker/types.d.ts +5 -3
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeDiscreteSettings.d.ts +354 -0
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeHeatmapSettings.d.ts +243 -0
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeHistogramSettings.d.ts +84 -0
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeScatterplotSettings.d.ts +199 -0
- package/dist/GraphMaker/utils/createChartSettingsForRender/composeScatterplotUmapSettings.d.ts +199 -0
- package/dist/GraphMaker/utils/createChartSettingsForRender/conposeDendroSettings.d.ts +4 -0
- package/dist/graph-maker.js +31308 -30233
- package/dist/graph-maker.umd.cjs +1022 -1022
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AxisTitleMode, DeepPartial, DiscreteLayer, DiscreteLayersTemplate, Frame, HeatmapFrame, HeatmapLayer, HeatmapLayerTemplate, LabelsPosition, LabelsRotation, Layer, LayersTemplate, Scale, ScatterplotLayer, ScatterplotLayersTemplate, TitlePosition } from './types.ts';
|
|
1
|
+
import { AxisTitleMode, DeepPartial, DiscreteLayer, DiscreteLayersTemplate, Frame, HeatmapFrame, HeatmapLayer, HeatmapLayerTemplate, HistogramLayer, HistogramLayerTemplate, LabelsPosition, LabelsRotation, Layer, LayersTemplate, Scale, ScatterplotLayer, ScatterplotLayersTemplate, TitlePosition } from './types.ts';
|
|
2
2
|
import { ChartType } from '@milaboratories/pf-plots';
|
|
3
3
|
import { Component } from 'vue';
|
|
4
4
|
import { DotShape, LineType } from './components/AesSettings/types.ts';
|
|
@@ -18,6 +18,7 @@ export declare function getInitialTemplate(restoredTemplate: LayersTemplate | nu
|
|
|
18
18
|
export declare const DISCRETE_TEMPLATES_MAP: Record<DiscreteLayersTemplate, DiscreteLayer[]>;
|
|
19
19
|
export declare const SCATTERPLOT_TEMPLATES_MAP: Record<ScatterplotLayersTemplate, ScatterplotLayer[]>;
|
|
20
20
|
export declare const HEATMAP_TEMPLATES_MAP: Record<HeatmapLayerTemplate, HeatmapLayer[]>;
|
|
21
|
+
export declare const HISTOGRAM_TEMPLATES_MAP: Record<HistogramLayerTemplate, HistogramLayer[]>;
|
|
21
22
|
export declare const LAYER_TITLES: Record<Layer, string>;
|
|
22
23
|
export type DiscreteStatisticsState = {
|
|
23
24
|
overall: {
|
|
@@ -89,6 +90,10 @@ export declare function isNumberRange(v: number | NumberRange | null | undefined
|
|
|
89
90
|
export declare function isMappedAes(item: FixedOrMappedAes | null | string | number | boolean | unknown): item is MappingLink;
|
|
90
91
|
export declare function isContinuousDataMapping(v: ContinuousDataMapping | number | null | undefined): v is ContinuousDataMapping;
|
|
91
92
|
export type LayersSettings = {
|
|
93
|
+
bins: {
|
|
94
|
+
fillColor: ColorAes | null;
|
|
95
|
+
opacity: number;
|
|
96
|
+
};
|
|
92
97
|
dendro: {
|
|
93
98
|
dotFill: ColorAes;
|
|
94
99
|
dotShape: DotShapeAes;
|
|
@@ -226,6 +231,7 @@ export type AxesState = {
|
|
|
226
231
|
reverse: boolean;
|
|
227
232
|
facetSharedBy: 'x' | 'y' | 'xy' | 'none';
|
|
228
233
|
facetColumns: number;
|
|
234
|
+
binsCount: number;
|
|
229
235
|
};
|
|
230
236
|
};
|
|
231
237
|
export declare function getInitialAxesSettings(chartType: ChartType, initialAxesSettings?: DeepPartial<AxesState>): AxesState;
|
|
@@ -238,4 +244,8 @@ export declare const STAT_TEST_METHOD: Option[];
|
|
|
238
244
|
export declare const STAT_CORRECTION_METHOD: Option[];
|
|
239
245
|
export declare const FORMAT_P_VALUE_OPTIONS: Option[];
|
|
240
246
|
export type AesType = 'fill' | 'stroke' | 'dotShape' | 'lineType' | 'size';
|
|
247
|
+
export declare const DEFAULT_WIDTH = 600;
|
|
248
|
+
export declare const DEFAULT_HEIGHT = 350;
|
|
249
|
+
export declare const DEFAULT_WIDTH_SMALL = 400;
|
|
250
|
+
export declare const DEFAULT_HEIGHT_SMALL = 250;
|
|
241
251
|
export {};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -159,6 +159,37 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
159
159
|
labelsModifier: {
|
|
160
160
|
type: import('vue').PropType<(id: string, label: string) => string>;
|
|
161
161
|
};
|
|
162
|
+
} | {
|
|
163
|
+
modelValue: {
|
|
164
|
+
required: true;
|
|
165
|
+
type: import('vue').PropType<GraphMakerState>;
|
|
166
|
+
};
|
|
167
|
+
pFrame: {
|
|
168
|
+
type: import('vue').PropType<import('@platforma-sdk/model').PFrameHandle | undefined>;
|
|
169
|
+
required: true;
|
|
170
|
+
};
|
|
171
|
+
chartType: {
|
|
172
|
+
type: import('vue').PropType<"histogram">;
|
|
173
|
+
required: true;
|
|
174
|
+
};
|
|
175
|
+
defaultOptions: {
|
|
176
|
+
type: import('vue').PropType<import('./types.ts').PredefinedGraphOption<"histogram">[]>;
|
|
177
|
+
};
|
|
178
|
+
fixedOptions: {
|
|
179
|
+
type: import('vue').PropType<import('./types.ts').PredefinedGraphOption<"histogram">[]>;
|
|
180
|
+
};
|
|
181
|
+
allowChartDeleting: {
|
|
182
|
+
type: import('vue').PropType<boolean>;
|
|
183
|
+
};
|
|
184
|
+
driver: {
|
|
185
|
+
type: import('vue').PropType<PFrameDriver>;
|
|
186
|
+
};
|
|
187
|
+
tooltipButton: {
|
|
188
|
+
type: import('vue').PropType<string>;
|
|
189
|
+
};
|
|
190
|
+
labelsModifier: {
|
|
191
|
+
type: import('vue').PropType<(id: string, label: string) => string>;
|
|
192
|
+
};
|
|
162
193
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
163
194
|
"tooltip-btn-click": (...args: any[]) => void;
|
|
164
195
|
"delete-this-graph": (...args: any[]) => void;
|
|
@@ -317,10 +348,41 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
317
348
|
labelsModifier: {
|
|
318
349
|
type: import('vue').PropType<(id: string, label: string) => string>;
|
|
319
350
|
};
|
|
351
|
+
} | {
|
|
352
|
+
modelValue: {
|
|
353
|
+
required: true;
|
|
354
|
+
type: import('vue').PropType<GraphMakerState>;
|
|
355
|
+
};
|
|
356
|
+
pFrame: {
|
|
357
|
+
type: import('vue').PropType<import('@platforma-sdk/model').PFrameHandle | undefined>;
|
|
358
|
+
required: true;
|
|
359
|
+
};
|
|
360
|
+
chartType: {
|
|
361
|
+
type: import('vue').PropType<"histogram">;
|
|
362
|
+
required: true;
|
|
363
|
+
};
|
|
364
|
+
defaultOptions: {
|
|
365
|
+
type: import('vue').PropType<import('./types.ts').PredefinedGraphOption<"histogram">[]>;
|
|
366
|
+
};
|
|
367
|
+
fixedOptions: {
|
|
368
|
+
type: import('vue').PropType<import('./types.ts').PredefinedGraphOption<"histogram">[]>;
|
|
369
|
+
};
|
|
370
|
+
allowChartDeleting: {
|
|
371
|
+
type: import('vue').PropType<boolean>;
|
|
372
|
+
};
|
|
373
|
+
driver: {
|
|
374
|
+
type: import('vue').PropType<PFrameDriver>;
|
|
375
|
+
};
|
|
376
|
+
tooltipButton: {
|
|
377
|
+
type: import('vue').PropType<string>;
|
|
378
|
+
};
|
|
379
|
+
labelsModifier: {
|
|
380
|
+
type: import('vue').PropType<(id: string, label: string) => string>;
|
|
381
|
+
};
|
|
320
382
|
}>> & Readonly<{
|
|
321
383
|
"onTooltip-btn-click"?: ((...args: any[]) => any) | undefined;
|
|
322
384
|
"onDelete-this-graph"?: ((...args: any[]) => any) | undefined;
|
|
323
|
-
}>, {} | {} | {} | {} | {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
385
|
+
}>, {} | {} | {} | {} | {} | {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
324
386
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
325
387
|
export default _default;
|
|
326
388
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -14,6 +14,13 @@ export declare function createReactiveState(initialData: GraphMakerState, chartT
|
|
|
14
14
|
dividedAxes: Record<string, boolean>;
|
|
15
15
|
};
|
|
16
16
|
layersSettings: {
|
|
17
|
+
bins: {
|
|
18
|
+
fillColor: string | {
|
|
19
|
+
type: string;
|
|
20
|
+
value?: string | undefined;
|
|
21
|
+
} | null;
|
|
22
|
+
opacity: number;
|
|
23
|
+
};
|
|
17
24
|
dendro: {
|
|
18
25
|
dotFill: string | {
|
|
19
26
|
type: string;
|
|
@@ -250,6 +257,7 @@ export declare function createReactiveState(initialData: GraphMakerState, chartT
|
|
|
250
257
|
reverse: boolean;
|
|
251
258
|
facetSharedBy: "x" | "y" | "xy" | "none";
|
|
252
259
|
facetColumns: number;
|
|
260
|
+
binsCount: number;
|
|
253
261
|
};
|
|
254
262
|
};
|
|
255
263
|
statisticsSettings: {
|
|
@@ -313,6 +321,13 @@ export declare function factoryStore(reactiveState: Reactive<ReactiveState>, dat
|
|
|
313
321
|
dividedAxes: Record<string, boolean>;
|
|
314
322
|
};
|
|
315
323
|
layersSettings: {
|
|
324
|
+
bins: {
|
|
325
|
+
fillColor: string | {
|
|
326
|
+
type: string;
|
|
327
|
+
value?: string | undefined;
|
|
328
|
+
} | null;
|
|
329
|
+
opacity: number;
|
|
330
|
+
};
|
|
316
331
|
dendro: {
|
|
317
332
|
dotFill: string | {
|
|
318
333
|
type: string;
|
|
@@ -549,6 +564,7 @@ export declare function factoryStore(reactiveState: Reactive<ReactiveState>, dat
|
|
|
549
564
|
reverse: boolean;
|
|
550
565
|
facetSharedBy: "x" | "y" | "xy" | "none";
|
|
551
566
|
facetColumns: number;
|
|
567
|
+
binsCount: number;
|
|
552
568
|
};
|
|
553
569
|
};
|
|
554
570
|
statisticsSettings: {
|
|
@@ -640,6 +656,13 @@ export declare function provideStore(initialState: GraphMakerState, dataStoreRef
|
|
|
640
656
|
dividedAxes: Record<string, boolean>;
|
|
641
657
|
};
|
|
642
658
|
layersSettings: {
|
|
659
|
+
bins: {
|
|
660
|
+
fillColor: string | {
|
|
661
|
+
type: string;
|
|
662
|
+
value?: string | undefined;
|
|
663
|
+
} | null;
|
|
664
|
+
opacity: number;
|
|
665
|
+
};
|
|
643
666
|
dendro: {
|
|
644
667
|
dotFill: string | {
|
|
645
668
|
type: string;
|
|
@@ -876,6 +899,7 @@ export declare function provideStore(initialState: GraphMakerState, dataStoreRef
|
|
|
876
899
|
reverse: boolean;
|
|
877
900
|
facetSharedBy: "x" | "y" | "xy" | "none";
|
|
878
901
|
facetColumns: number;
|
|
902
|
+
binsCount: number;
|
|
879
903
|
};
|
|
880
904
|
};
|
|
881
905
|
statisticsSettings: {
|
|
@@ -34,7 +34,7 @@ export interface GraphMakerPropsTyped<T extends ChartType> {
|
|
|
34
34
|
tooltipButton?: string;
|
|
35
35
|
labelsModifier?: (id: string, label: string) => string;
|
|
36
36
|
}
|
|
37
|
-
export type GraphMakerProps = GraphMakerPropsTyped<'discrete'> | GraphMakerPropsTyped<'scatterplot'> | GraphMakerPropsTyped<'scatterplot-umap'> | GraphMakerPropsTyped<'heatmap'> | GraphMakerPropsTyped<'dendro'>;
|
|
37
|
+
export type GraphMakerProps = GraphMakerPropsTyped<'discrete'> | GraphMakerPropsTyped<'scatterplot'> | GraphMakerPropsTyped<'scatterplot-umap'> | GraphMakerPropsTyped<'heatmap'> | GraphMakerPropsTyped<'dendro'> | GraphMakerPropsTyped<'histogram'>;
|
|
38
38
|
export type GraphMakerInputName<T extends ChartType> = InputNamesByChartType[T];
|
|
39
39
|
export type DendroNodeInfo = {
|
|
40
40
|
x: number;
|
|
@@ -61,8 +61,10 @@ export type HeatmapLayer = 'heatmap' | 'heatmapClustered';
|
|
|
61
61
|
export type HeatmapLayerTemplate = HeatmapLayer;
|
|
62
62
|
export type DendroLayer = 'dendro';
|
|
63
63
|
export type DendroLayerTemplate = DendroLayer;
|
|
64
|
-
export type
|
|
65
|
-
export type
|
|
64
|
+
export type HistogramLayer = 'bins';
|
|
65
|
+
export type HistogramLayerTemplate = HistogramLayer;
|
|
66
|
+
export type LayersTemplate = DiscreteLayersTemplate | ScatterplotLayersTemplate | HeatmapLayerTemplate | DendroLayerTemplate | HistogramLayerTemplate;
|
|
67
|
+
export type Layer = DiscreteLayer | ScatterplotLayer | HeatmapLayer | DendroLayer | HistogramLayer;
|
|
66
68
|
export type TitlePosition = 'left' | 'right' | 'center';
|
|
67
69
|
export type LabelsPosition = 'top' | 'bottom' | 'left' | 'right' | 'hidden';
|
|
68
70
|
export type LabelsRotation = 'center' | '45deg' | '90deg';
|
|
@@ -0,0 +1,354 @@
|
|
|
1
|
+
import { DiscreteSettings } from '@milaboratories/miplots4';
|
|
2
|
+
import { ReactiveState, UniqueValuesData } from '../../types.ts';
|
|
3
|
+
import { PlotDataAndSettings } from '@milaboratories/pf-plots';
|
|
4
|
+
|
|
5
|
+
export declare function composeDiscreteSettings(settings: DiscreteSettings, reactiveState: ReactiveState, uniqueValuesData: Record<string, UniqueValuesData>, dataByColumns: PlotDataAndSettings['dataByColumns']): {
|
|
6
|
+
type: "discrete";
|
|
7
|
+
title: {
|
|
8
|
+
name: string;
|
|
9
|
+
show?: boolean | undefined;
|
|
10
|
+
position?: "left" | "center" | "right" | undefined;
|
|
11
|
+
};
|
|
12
|
+
y: {
|
|
13
|
+
type: "column";
|
|
14
|
+
value: string;
|
|
15
|
+
label?: string | undefined;
|
|
16
|
+
valueLabels?: string | undefined;
|
|
17
|
+
};
|
|
18
|
+
layers: ({
|
|
19
|
+
type: "box";
|
|
20
|
+
aes?: {
|
|
21
|
+
lineWidth?: number | undefined;
|
|
22
|
+
lineShape?: "solid" | "dashed" | "dotted" | "dotdash" | "longdash" | "twodash" | undefined;
|
|
23
|
+
lineColor?: string | {
|
|
24
|
+
type: "primaryGrouping" | "secondaryGrouping";
|
|
25
|
+
} | undefined;
|
|
26
|
+
opacity?: number | undefined;
|
|
27
|
+
fillColor?: string | {
|
|
28
|
+
type: "primaryGrouping" | "secondaryGrouping";
|
|
29
|
+
} | undefined;
|
|
30
|
+
showOutliers?: boolean | undefined;
|
|
31
|
+
outliersShape?: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "20" | "21" | "22" | "23" | "24" | "25" | {
|
|
32
|
+
type: "primaryGrouping" | "secondaryGrouping";
|
|
33
|
+
} | undefined;
|
|
34
|
+
outliersSize?: number | {
|
|
35
|
+
type: "primaryGrouping" | "secondaryGrouping";
|
|
36
|
+
} | undefined;
|
|
37
|
+
outliersColor?: string | {
|
|
38
|
+
type: "primaryGrouping" | "secondaryGrouping";
|
|
39
|
+
} | undefined;
|
|
40
|
+
boxWidth?: number | undefined;
|
|
41
|
+
} | undefined;
|
|
42
|
+
stat?: {
|
|
43
|
+
upper?: number | undefined;
|
|
44
|
+
middle?: number | undefined;
|
|
45
|
+
lower?: number | undefined;
|
|
46
|
+
k?: number | undefined;
|
|
47
|
+
} | undefined;
|
|
48
|
+
} | {
|
|
49
|
+
type: "violin";
|
|
50
|
+
aes?: {
|
|
51
|
+
lineWidth?: number | undefined;
|
|
52
|
+
lineShape?: "solid" | "dashed" | "dotted" | "dotdash" | "longdash" | "twodash" | undefined;
|
|
53
|
+
lineColor?: string | {
|
|
54
|
+
type: "primaryGrouping" | "secondaryGrouping";
|
|
55
|
+
} | undefined;
|
|
56
|
+
opacity?: number | undefined;
|
|
57
|
+
fillColor?: string | {
|
|
58
|
+
type: "primaryGrouping" | "secondaryGrouping";
|
|
59
|
+
} | undefined;
|
|
60
|
+
boxWidth?: number | undefined;
|
|
61
|
+
} | undefined;
|
|
62
|
+
stat?: {
|
|
63
|
+
bandwidth?: number | undefined;
|
|
64
|
+
trim?: boolean | undefined;
|
|
65
|
+
} | undefined;
|
|
66
|
+
} | {
|
|
67
|
+
type: "dot";
|
|
68
|
+
aes?: {
|
|
69
|
+
dotShape?: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "20" | "21" | "22" | "23" | "24" | "25" | {
|
|
70
|
+
type: "primaryGrouping" | "secondaryGrouping";
|
|
71
|
+
} | undefined;
|
|
72
|
+
dotSize?: number | undefined;
|
|
73
|
+
lineColor?: string | {
|
|
74
|
+
type: "primaryGrouping" | "secondaryGrouping";
|
|
75
|
+
} | undefined;
|
|
76
|
+
opacity?: number | undefined;
|
|
77
|
+
fillColor?: string | {
|
|
78
|
+
type: "primaryGrouping" | "secondaryGrouping";
|
|
79
|
+
} | undefined;
|
|
80
|
+
showOutliers?: boolean | undefined;
|
|
81
|
+
jitter?: number | undefined;
|
|
82
|
+
} | undefined;
|
|
83
|
+
} | {
|
|
84
|
+
type: "line";
|
|
85
|
+
pointsValues: "mean" | "median";
|
|
86
|
+
aes?: {
|
|
87
|
+
dotShape?: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "20" | "21" | "22" | "23" | "24" | "25" | {
|
|
88
|
+
type: "primaryGrouping" | "secondaryGrouping";
|
|
89
|
+
} | undefined;
|
|
90
|
+
dotSize?: number | undefined;
|
|
91
|
+
lineWidth?: number | undefined;
|
|
92
|
+
lineShape?: "solid" | "dashed" | "dotted" | "dotdash" | "longdash" | "twodash" | {
|
|
93
|
+
type: "primaryGrouping" | "secondaryGrouping";
|
|
94
|
+
} | undefined;
|
|
95
|
+
lineColor?: string | {
|
|
96
|
+
type: "primaryGrouping" | "secondaryGrouping";
|
|
97
|
+
} | undefined;
|
|
98
|
+
opacity?: number | undefined;
|
|
99
|
+
fillColor?: string | {
|
|
100
|
+
type: "primaryGrouping" | "secondaryGrouping";
|
|
101
|
+
} | undefined;
|
|
102
|
+
showOutliers?: boolean | undefined;
|
|
103
|
+
} | undefined;
|
|
104
|
+
} | {
|
|
105
|
+
type: "errorbar";
|
|
106
|
+
pointsValues: "mean" | "median";
|
|
107
|
+
interval: "sd" | "se" | "ci";
|
|
108
|
+
aes?: {
|
|
109
|
+
dotShape?: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "20" | "21" | "22" | "23" | "24" | "25" | {
|
|
110
|
+
type: "primaryGrouping" | "secondaryGrouping";
|
|
111
|
+
} | undefined;
|
|
112
|
+
dotSize?: number | undefined;
|
|
113
|
+
lineWidth?: number | undefined;
|
|
114
|
+
lineColor?: string | {
|
|
115
|
+
type: "primaryGrouping" | "secondaryGrouping";
|
|
116
|
+
} | undefined;
|
|
117
|
+
opacity?: number | undefined;
|
|
118
|
+
width?: number | undefined;
|
|
119
|
+
fillColor?: string | {
|
|
120
|
+
type: "primaryGrouping" | "secondaryGrouping";
|
|
121
|
+
} | undefined;
|
|
122
|
+
showDots?: boolean | undefined;
|
|
123
|
+
} | undefined;
|
|
124
|
+
} | {
|
|
125
|
+
type: "bar";
|
|
126
|
+
aes?: {
|
|
127
|
+
lineWidth?: number | undefined;
|
|
128
|
+
lineColor?: string | {
|
|
129
|
+
type: "primaryGrouping" | "secondaryGrouping";
|
|
130
|
+
} | undefined;
|
|
131
|
+
opacity?: number | undefined;
|
|
132
|
+
width?: number | undefined;
|
|
133
|
+
fillColor?: string | {
|
|
134
|
+
type: "primaryGrouping" | "secondaryGrouping";
|
|
135
|
+
} | undefined;
|
|
136
|
+
} | undefined;
|
|
137
|
+
height?: "mean" | "median" | "min" | "max" | undefined;
|
|
138
|
+
} | {
|
|
139
|
+
type: "stackedBar";
|
|
140
|
+
aes?: {
|
|
141
|
+
lineWidth?: number | undefined;
|
|
142
|
+
lineColor?: string | {
|
|
143
|
+
type: "primaryGrouping" | "secondaryGrouping";
|
|
144
|
+
} | undefined;
|
|
145
|
+
opacity?: number | undefined;
|
|
146
|
+
width?: number | undefined;
|
|
147
|
+
fillColor?: string | {
|
|
148
|
+
type: "primaryGrouping" | "secondaryGrouping";
|
|
149
|
+
} | undefined;
|
|
150
|
+
} | undefined;
|
|
151
|
+
} | {
|
|
152
|
+
type: "binnedDots";
|
|
153
|
+
aes?: {
|
|
154
|
+
dotSize?: number | undefined;
|
|
155
|
+
lineWidth?: number | undefined;
|
|
156
|
+
lineColor?: string | {
|
|
157
|
+
type: "primaryGrouping" | "secondaryGrouping";
|
|
158
|
+
} | undefined;
|
|
159
|
+
opacity?: number | undefined;
|
|
160
|
+
width?: number | undefined;
|
|
161
|
+
fillColor?: string | {
|
|
162
|
+
type: "primaryGrouping" | "secondaryGrouping";
|
|
163
|
+
} | undefined;
|
|
164
|
+
showOutliers?: boolean | undefined;
|
|
165
|
+
} | undefined;
|
|
166
|
+
position?: "jitter" | "stack" | undefined;
|
|
167
|
+
keyColumn?: {
|
|
168
|
+
type: "column";
|
|
169
|
+
value: string;
|
|
170
|
+
label?: string | undefined;
|
|
171
|
+
valueLabels?: string | undefined;
|
|
172
|
+
} | undefined;
|
|
173
|
+
method?: "dotdensity" | "histodot" | undefined;
|
|
174
|
+
} | {
|
|
175
|
+
type: "pairedPoints";
|
|
176
|
+
linkColumn: {
|
|
177
|
+
type: "column";
|
|
178
|
+
value: string;
|
|
179
|
+
label?: string | undefined;
|
|
180
|
+
valueLabels?: string | undefined;
|
|
181
|
+
};
|
|
182
|
+
aes?: {
|
|
183
|
+
dotFill?: string | {
|
|
184
|
+
type: "primaryGrouping" | "secondaryGrouping";
|
|
185
|
+
} | undefined;
|
|
186
|
+
dotShape?: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "20" | "21" | "22" | "23" | "24" | "25" | undefined;
|
|
187
|
+
dotSize?: number | undefined;
|
|
188
|
+
lineWidth?: number | undefined;
|
|
189
|
+
lineShape?: "solid" | "dashed" | "dotted" | "dotdash" | "longdash" | "twodash" | undefined;
|
|
190
|
+
lineColor?: string | {
|
|
191
|
+
type: "primaryGrouping" | "secondaryGrouping";
|
|
192
|
+
} | undefined;
|
|
193
|
+
opacity?: number | undefined;
|
|
194
|
+
showOutliers?: boolean | undefined;
|
|
195
|
+
} | undefined;
|
|
196
|
+
} | {
|
|
197
|
+
type: "sina";
|
|
198
|
+
aes?: {
|
|
199
|
+
dotFill?: string | {
|
|
200
|
+
type: "primaryGrouping" | "secondaryGrouping";
|
|
201
|
+
} | undefined;
|
|
202
|
+
dotShape?: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "20" | "21" | "22" | "23" | "24" | "25" | {
|
|
203
|
+
type: "primaryGrouping" | "secondaryGrouping";
|
|
204
|
+
} | undefined;
|
|
205
|
+
dotSize?: number | undefined;
|
|
206
|
+
opacity?: number | undefined;
|
|
207
|
+
showOutliers?: boolean | undefined;
|
|
208
|
+
} | undefined;
|
|
209
|
+
} | {
|
|
210
|
+
type: "stat";
|
|
211
|
+
statType: "overall" | "referenceGroup" | "pairwise";
|
|
212
|
+
testMethod: "ttest" | "anova" | "wilcoxon" | "kruskalWallis";
|
|
213
|
+
referenceGroup?: string | number | null | undefined;
|
|
214
|
+
paired?: boolean | undefined;
|
|
215
|
+
ns?: boolean | undefined;
|
|
216
|
+
format?: "significance" | "pValue" | undefined;
|
|
217
|
+
correctionMethod?: "BenjaminiHochberg" | "BenjaminiYekutieli" | "Bonferroni" | "Hochberg" | "Holm" | "Hommel" | undefined;
|
|
218
|
+
significanceLevels?: {
|
|
219
|
+
one: number;
|
|
220
|
+
two: number;
|
|
221
|
+
three: number;
|
|
222
|
+
} | undefined;
|
|
223
|
+
})[];
|
|
224
|
+
size?: {
|
|
225
|
+
width?: number | undefined;
|
|
226
|
+
height?: number | undefined;
|
|
227
|
+
} | undefined;
|
|
228
|
+
legend?: {
|
|
229
|
+
show?: boolean | undefined;
|
|
230
|
+
position?: "right" | "inside" | "top" | "bottom" | undefined;
|
|
231
|
+
} | undefined;
|
|
232
|
+
tooltips?: {
|
|
233
|
+
box?: {
|
|
234
|
+
show: boolean;
|
|
235
|
+
} | undefined;
|
|
236
|
+
dot?: {
|
|
237
|
+
show: boolean;
|
|
238
|
+
} | undefined;
|
|
239
|
+
line?: {
|
|
240
|
+
show: boolean;
|
|
241
|
+
} | undefined;
|
|
242
|
+
stackedBar?: {
|
|
243
|
+
show: boolean;
|
|
244
|
+
} | undefined;
|
|
245
|
+
binnedDots?: {
|
|
246
|
+
show: boolean;
|
|
247
|
+
} | undefined;
|
|
248
|
+
pairedPoints?: {
|
|
249
|
+
show: boolean;
|
|
250
|
+
} | undefined;
|
|
251
|
+
boxOutliers?: {
|
|
252
|
+
show: boolean;
|
|
253
|
+
} | undefined;
|
|
254
|
+
errorBar?: {
|
|
255
|
+
show: boolean;
|
|
256
|
+
} | undefined;
|
|
257
|
+
} | undefined;
|
|
258
|
+
frame?: {
|
|
259
|
+
type?: "left" | "bottom" | "left-bottom" | "full" | "empty" | undefined;
|
|
260
|
+
} | undefined;
|
|
261
|
+
facetSettings?: {
|
|
262
|
+
sharedX?: boolean | undefined;
|
|
263
|
+
sharedY?: boolean | undefined;
|
|
264
|
+
nRows?: number | undefined;
|
|
265
|
+
nCols?: number | undefined;
|
|
266
|
+
order?: Record<string, (string | number | null)[]> | undefined;
|
|
267
|
+
titlePosition?: "left" | "center" | "right" | undefined;
|
|
268
|
+
} | undefined;
|
|
269
|
+
keyColumn?: {
|
|
270
|
+
type: "column";
|
|
271
|
+
value: string;
|
|
272
|
+
label?: string | undefined;
|
|
273
|
+
valueLabels?: string | undefined;
|
|
274
|
+
} | undefined;
|
|
275
|
+
xAxis?: {
|
|
276
|
+
title?: string | {
|
|
277
|
+
type: "column";
|
|
278
|
+
value: string;
|
|
279
|
+
label?: string | undefined;
|
|
280
|
+
valueLabels?: string | undefined;
|
|
281
|
+
} | undefined;
|
|
282
|
+
scale?: "linear" | "log" | undefined;
|
|
283
|
+
showGrid?: boolean | undefined;
|
|
284
|
+
linesBetweenCategories?: boolean | undefined;
|
|
285
|
+
showTicks?: boolean | undefined;
|
|
286
|
+
labelsPosition?: "center" | "45deg" | "90deg" | undefined;
|
|
287
|
+
significantLines?: number[] | undefined;
|
|
288
|
+
significantLinesStyle?: "solid" | "dashed" | "dotted" | "dotdash" | "longdash" | "twodash" | undefined;
|
|
289
|
+
symmetricRange?: number | undefined;
|
|
290
|
+
upperValue?: number | undefined;
|
|
291
|
+
lowerValue?: number | undefined;
|
|
292
|
+
} | undefined;
|
|
293
|
+
yAxis?: {
|
|
294
|
+
title?: string | {
|
|
295
|
+
type: "column";
|
|
296
|
+
value: string;
|
|
297
|
+
label?: string | undefined;
|
|
298
|
+
valueLabels?: string | undefined;
|
|
299
|
+
} | undefined;
|
|
300
|
+
scale?: "linear" | "log" | undefined;
|
|
301
|
+
showGrid?: boolean | undefined;
|
|
302
|
+
linesBetweenCategories?: boolean | undefined;
|
|
303
|
+
showTicks?: boolean | undefined;
|
|
304
|
+
labelsPosition?: "center" | "45deg" | "90deg" | undefined;
|
|
305
|
+
significantLines?: number[] | undefined;
|
|
306
|
+
significantLinesStyle?: "solid" | "dashed" | "dotted" | "dotdash" | "longdash" | "twodash" | undefined;
|
|
307
|
+
symmetricRange?: number | undefined;
|
|
308
|
+
upperValue?: number | undefined;
|
|
309
|
+
lowerValue?: number | undefined;
|
|
310
|
+
} | undefined;
|
|
311
|
+
facetBy?: {
|
|
312
|
+
type: "column";
|
|
313
|
+
value: string;
|
|
314
|
+
label?: string | undefined;
|
|
315
|
+
valueLabels?: string | undefined;
|
|
316
|
+
}[] | undefined;
|
|
317
|
+
primaryGrouping?: {
|
|
318
|
+
columnName: {
|
|
319
|
+
type: "column";
|
|
320
|
+
value: string;
|
|
321
|
+
label?: string | undefined;
|
|
322
|
+
valueLabels?: string | undefined;
|
|
323
|
+
};
|
|
324
|
+
inheritedAes?: Record<string, {
|
|
325
|
+
dotFill?: string | undefined;
|
|
326
|
+
dotShape?: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "20" | "21" | "22" | "23" | "24" | "25" | undefined;
|
|
327
|
+
dotSize?: number | undefined;
|
|
328
|
+
lineWidth?: number | undefined;
|
|
329
|
+
lineShape?: "solid" | "dashed" | "dotted" | "dotdash" | "longdash" | "twodash" | undefined;
|
|
330
|
+
lineColor?: string | undefined;
|
|
331
|
+
fillColor?: string | undefined;
|
|
332
|
+
}> | undefined;
|
|
333
|
+
order?: (string | number | null)[] | undefined;
|
|
334
|
+
} | undefined;
|
|
335
|
+
secondaryGrouping?: {
|
|
336
|
+
columnName: {
|
|
337
|
+
type: "column";
|
|
338
|
+
value: string;
|
|
339
|
+
label?: string | undefined;
|
|
340
|
+
valueLabels?: string | undefined;
|
|
341
|
+
};
|
|
342
|
+
inheritedAes?: Record<string, {
|
|
343
|
+
dotFill?: string | undefined;
|
|
344
|
+
dotShape?: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "20" | "21" | "22" | "23" | "24" | "25" | undefined;
|
|
345
|
+
dotSize?: number | undefined;
|
|
346
|
+
lineWidth?: number | undefined;
|
|
347
|
+
lineShape?: "solid" | "dashed" | "dotted" | "dotdash" | "longdash" | "twodash" | undefined;
|
|
348
|
+
lineColor?: string | undefined;
|
|
349
|
+
fillColor?: string | undefined;
|
|
350
|
+
}> | undefined;
|
|
351
|
+
order?: (string | number | null)[] | undefined;
|
|
352
|
+
} | undefined;
|
|
353
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
354
|
+
};
|