@vizzly/services 0.15.0-dev-94e739b956ca7a1d1481a1e3ac4958988a883fe5 → 0.15.0-dev-21f63b84088b40b7cb4e9022125e04e1004ac6c9

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.
@@ -31,14 +31,18 @@ export declare const timeDimensionQuerySchema: (queryEngineConfig: QueryEngineCo
31
31
  filter: Joi.ArraySchema<any[]>;
32
32
  timeDimension: Joi.AlternativesSchema<any>;
33
33
  drilldown: Joi.AlternativesSchema<string | any[]>;
34
- xAxisPrefix: Joi.StringSchema<string>;
35
- yAxisPrefix: Joi.StringSchema<string>;
36
34
  xAxisPostfix: Joi.StringSchema<string>;
37
- yAxisPostfix: Joi.StringSchema<string>;
35
+ xAxisPrefix: Joi.StringSchema<string>;
38
36
  yAxisFormat: Joi.AlternativesSchema<any>;
37
+ yAxisPostfix: Joi.StringSchema<string>;
38
+ yAxisPrefix: Joi.StringSchema<string>;
39
+ yDualAxisFormat: Joi.AlternativesSchema<any>;
40
+ yDualAxisPostfix: Joi.StringSchema<string>;
41
+ yDualAxisPrefix: Joi.StringSchema<string>;
39
42
  xAxisFormat: Joi.AlternativesSchema<any>;
40
43
  approxYAxisLabelCount: Joi.AnySchema<any>;
41
44
  approxXAxisLabelCount: Joi.AnySchema<any>;
45
+ approxDualYAxisLabelCount: Joi.AnySchema<any>;
42
46
  measure: Joi.ArraySchema<any[]>;
43
47
  dimension: Joi.ArraySchema<any[]>;
44
48
  order: Joi.ArraySchema<any[]>;
@@ -103,6 +103,7 @@ export declare namespace Component {
103
103
  export type AxisTitles = {
104
104
  x?: string;
105
105
  y?: string;
106
+ yDual?: string;
106
107
  };
107
108
  export type HeadlineFunction = 'mean' | 'sum' | 'current' | null;
108
109
  export type Headline = {
@@ -163,6 +164,7 @@ export declare namespace Component {
163
164
  yAxisFormat: FormatType;
164
165
  approxXAxisLabelCount: ApproxAxisLabelCount;
165
166
  approxYAxisLabelCount: ApproxAxisLabelCount;
167
+ approxDualYAxisLabelCount?: ApproxAxisLabelCount;
166
168
  legend: boolean;
167
169
  labels?: boolean;
168
170
  goalLines?: Array<Component.GoalLine.Rule>;
@@ -171,6 +173,10 @@ export declare namespace Component {
171
173
  line?: Array<ConditionalFormatting.Rule>;
172
174
  };
173
175
  axisTitles?: AxisTitles;
176
+ isDualAxisEnabled?: boolean;
177
+ yDualAxisFormat?: FormatType;
178
+ yDualAxisPostfix?: string;
179
+ yDualAxisPrefix?: string;
174
180
  };
175
181
  export type LineChartAttributes = BaseAttributes & BaseQueryAttributes & {
176
182
  type: 'lineChart';
@@ -195,25 +201,30 @@ export declare namespace Component {
195
201
  };
196
202
  export type LineChartV2Attributes = BaseAttributes & BaseQueryAttributes & {
197
203
  type: 'lineChartV2';
198
- stacked?: boolean | '100%';
199
- xAxisPrefix: string;
200
- yAxisPrefix: string;
201
- xAxisPostfix: string;
202
- yAxisPostfix: string;
203
- lineCurve: LineCurve;
204
- xAxisFormat: FormatType;
205
- yAxisFormat: FormatType;
204
+ approxDualYAxisLabelCount?: ApproxAxisLabelCount;
206
205
  approxXAxisLabelCount: ApproxAxisLabelCount;
207
206
  approxYAxisLabelCount: ApproxAxisLabelCount;
207
+ axisTitles?: AxisTitles;
208
208
  conditionalFormattingRules: Array<ConditionalFormatting.Rule>;
209
209
  drilldown: QueryAttributes.Dimension[];
210
- legend: boolean;
211
- labels?: boolean;
212
- parameters?: Parameters;
213
210
  goalLines?: Array<Component.GoalLine.Rule>;
214
- axisTitles?: AxisTitles;
215
211
  headline?: Headline;
212
+ isDualAxisEnabled?: boolean;
213
+ labels?: boolean;
214
+ legend: boolean;
215
+ lineCurve: LineCurve;
216
+ parameters?: Parameters;
217
+ stacked?: boolean | '100%';
216
218
  trends?: Array<Trends>;
219
+ xAxisFormat: FormatType;
220
+ xAxisPostfix: string;
221
+ xAxisPrefix: string;
222
+ yAxisFormat: FormatType;
223
+ yAxisPostfix: string;
224
+ yAxisPrefix: string;
225
+ yDualAxisFormat?: FormatType;
226
+ yDualAxisPostfix?: string;
227
+ yDualAxisPrefix?: string;
217
228
  };
218
229
  export type AreaChartV2Attributes = BaseAttributes & BaseQueryAttributes & {
219
230
  type: 'areaChartV2';
@@ -255,6 +266,11 @@ export declare namespace Component {
255
266
  goalLines?: Array<Component.GoalLine.Rule>;
256
267
  axisTitles?: AxisTitles;
257
268
  headline?: Headline;
269
+ isDualAxisEnabled?: boolean;
270
+ yDualAxisFormat?: FormatType;
271
+ yDualAxisPostfix?: string;
272
+ yDualAxisPrefix?: string;
273
+ approxDualYAxisLabelCount?: ApproxAxisLabelCount;
258
274
  };
259
275
  export type PieChartAttributes = BaseAttributes & BaseQueryAttributes & {
260
276
  type: 'pieChart';
@@ -10,6 +10,14 @@ export declare function headingConstant(constants: ViewConstants): {
10
10
  namespace?: string;
11
11
  };
12
12
  export declare function axisLabelsConstants(constants: ViewConstants): {
13
+ dualAxes: {
14
+ type?: "axisLabels" | undefined;
15
+ title: string;
16
+ description?: string;
17
+ callToAction?: string;
18
+ testId?: string;
19
+ namespace?: string;
20
+ };
13
21
  y: {
14
22
  prefix: Section<"axisLabels">;
15
23
  postfix: Section<"axisLabels">;
@@ -23,6 +31,19 @@ export declare function axisLabelsConstants(constants: ViewConstants): {
23
31
  testId?: string;
24
32
  namespace?: string;
25
33
  };
34
+ yDual: {
35
+ prefix: Section<"axisLabels">;
36
+ postfix: Section<"axisLabels">;
37
+ format: Section<"axisLabels">;
38
+ count: Section<"axisLabels">;
39
+ axisTitle: Section<"axisLabels">;
40
+ type?: "axisLabels" | undefined;
41
+ title: string;
42
+ description?: string;
43
+ callToAction?: string;
44
+ testId?: string;
45
+ namespace?: string;
46
+ };
26
47
  x: {
27
48
  prefix: Section<"axisLabels">;
28
49
  postfix: Section<"axisLabels">;
@@ -66,12 +66,19 @@ export interface FormatPanelNamespaces {
66
66
  'y.format': SubSection<'axisLabels'>;
67
67
  'y.count': SubSection<'axisLabels'>;
68
68
  'y.axis_title'?: SubSection<'axisLabels'>;
69
+ yDual?: SubSection<'axisLabels'>;
70
+ 'yDual.prefix'?: SubSection<'axisLabels'>;
71
+ 'yDual.postfix'?: SubSection<'axisLabels'>;
72
+ 'yDual.format'?: SubSection<'axisLabels'>;
73
+ 'yDual.count'?: SubSection<'axisLabels'>;
74
+ 'yDual.axis_title'?: SubSection<'axisLabels'>;
69
75
  z?: SubSection<'axisLabels'>;
70
76
  'z.prefix'?: SubSection<'axisLabels'>;
71
77
  'z.postfix'?: SubSection<'axisLabels'>;
72
78
  'z.format'?: SubSection<'axisLabels'>;
73
79
  'z.count'?: SubSection<'axisLabels'>;
74
80
  'z.axis_title'?: SubSection<'axisLabels'>;
81
+ dual_axes?: SubSection<'dualAxes'>;
75
82
  };
76
83
  };
77
84
  stats_labels?: Section<'statsLabels'> & {
@@ -22,6 +22,8 @@ export interface LabelSection<T> extends Omit<Section<T>, 'type'> {
22
22
  export type AxisLabelsSection = Section<'axisLabels'> & {
23
23
  x: LabelSection<'axisLabels'>;
24
24
  y: LabelSection<'axisLabels'>;
25
+ yDual?: LabelSection<'axisLabels'>;
26
+ dualAxes?: Omit<Section<'dualAxes'>, 'type'>;
25
27
  };
26
28
  export type LabelsSection = Section<'statsLabels'> & LabelSection<'statsLabels'>;
27
29
  export type PrefixSection = Section<'prefixes'>;
package/package.json CHANGED
@@ -30,7 +30,7 @@
30
30
  "fix-type-alias": "tsc-alias -p tsconfig.types.json",
31
31
  "prepare": "yarn build"
32
32
  },
33
- "version": "0.15.0-dev-94e739b956ca7a1d1481a1e3ac4958988a883fe5",
33
+ "version": "0.15.0-dev-21f63b84088b40b7cb4e9022125e04e1004ac6c9",
34
34
  "dependencies": {
35
35
  "@vizzly/api-client": "0.0.57",
36
36
  "@vizzly/joi": "^17.11.0",