@lightdash/common 0.1372.4 → 0.1373.1
Sign up to get free protection for your applications and to get access to all the features.
package/dist/types/filter.d.ts
CHANGED
@@ -47,10 +47,11 @@ export type FilterDashboardToRule = DashboardFilterRule & {
|
|
47
47
|
};
|
48
48
|
};
|
49
49
|
export type DashboardFilterRuleOverride = Omit<DashboardFilterRule, 'tileTargets'>;
|
50
|
-
export type
|
50
|
+
export type DateFilterSettings = {
|
51
51
|
unitOfTime?: UnitOfTime;
|
52
52
|
completed?: boolean;
|
53
|
-
}
|
53
|
+
};
|
54
|
+
export type DateFilterRule = FilterRule<ConditionalOperator, unknown, any, DateFilterSettings>;
|
54
55
|
export type FilterGroupItem = FilterGroup | FilterRule;
|
55
56
|
export type OrFilterGroup = {
|
56
57
|
id: string;
|
@@ -290,7 +290,7 @@ class CartesianChartDataModel {
|
|
290
290
|
return {};
|
291
291
|
}
|
292
292
|
const { type } = this;
|
293
|
-
const orgColors = colors;
|
293
|
+
const orgColors = colors ?? savedCharts_1.ECHARTS_DEFAULT_COLORS;
|
294
294
|
const DEFAULT_X_AXIS_TYPE = types_1.VizIndexType.CATEGORY;
|
295
295
|
const defaultSeriesType = type === savedCharts_1.ChartKind.VERTICAL_BAR ? 'bar' : 'line';
|
296
296
|
const shouldStack = display?.stack === true;
|