From 862d3b0b3fcd571e38c1c03e9e7bd204f9ef4c0b Mon Sep 17 00:00:00 2001 From: Marta Bondyra Date: Wed, 3 Nov 2021 12:55:47 +0100 Subject: [PATCH] [Visualize] [xyChart] filter labels by default --- .../components/options/point_series/point_series.mocks.ts | 4 ++-- src/plugins/vis_types/xy/public/mocks.ts | 4 ++-- src/plugins/vis_types/xy/public/vis_types/area.ts | 2 +- src/plugins/vis_types/xy/public/vis_types/histogram.ts | 2 +- src/plugins/vis_types/xy/public/vis_types/horizontal_bar.ts | 2 +- src/plugins/vis_types/xy/public/vis_types/line.ts | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/plugins/vis_types/xy/public/editor/components/options/point_series/point_series.mocks.ts b/src/plugins/vis_types/xy/public/editor/components/options/point_series/point_series.mocks.ts index e51b47bc4c7fa..b01a04c162375 100644 --- a/src/plugins/vis_types/xy/public/editor/components/options/point_series/point_series.mocks.ts +++ b/src/plugins/vis_types/xy/public/editor/components/options/point_series/point_series.mocks.ts @@ -389,7 +389,7 @@ export const getVis = (bucketType: string) => { labels: { show: true, rotate: 0, - filter: false, + filter: true, truncate: 100, }, title: { @@ -822,7 +822,7 @@ export const getStateParams = (type: string, thresholdPanelOn: boolean) => { labels: { show: true, rotate: 0, - filter: false, + filter: true, truncate: 100, }, title: { diff --git a/src/plugins/vis_types/xy/public/mocks.ts b/src/plugins/vis_types/xy/public/mocks.ts index bb74035485723..6c0de8de1ac36 100644 --- a/src/plugins/vis_types/xy/public/mocks.ts +++ b/src/plugins/vis_types/xy/public/mocks.ts @@ -118,7 +118,7 @@ export const visParamsWithTwoYAxes = { }, labels: { type: 'label', - filter: false, + filter: true, rotate: 0, show: true, truncate: 100, @@ -138,7 +138,7 @@ export const visParamsWithTwoYAxes = { mode: 'normal', }, labels: { - filter: false, + filter: true, rotate: 0, show: true, truncate: 100, diff --git a/src/plugins/vis_types/xy/public/vis_types/area.ts b/src/plugins/vis_types/xy/public/vis_types/area.ts index 3ff840f1817e9..a140164cf2eb8 100644 --- a/src/plugins/vis_types/xy/public/vis_types/area.ts +++ b/src/plugins/vis_types/xy/public/vis_types/area.ts @@ -74,7 +74,7 @@ export const areaVisTypeDefinition = { labels: { show: true, rotate: LabelRotation.Horizontal, - filter: false, + filter: true, truncate: 100, }, title: { diff --git a/src/plugins/vis_types/xy/public/vis_types/histogram.ts b/src/plugins/vis_types/xy/public/vis_types/histogram.ts index dd65d6f31cb80..c9d17c8ed4501 100644 --- a/src/plugins/vis_types/xy/public/vis_types/histogram.ts +++ b/src/plugins/vis_types/xy/public/vis_types/histogram.ts @@ -76,7 +76,7 @@ export const histogramVisTypeDefinition = { labels: { show: true, rotate: LabelRotation.Horizontal, - filter: false, + filter: true, truncate: 100, }, title: { diff --git a/src/plugins/vis_types/xy/public/vis_types/horizontal_bar.ts b/src/plugins/vis_types/xy/public/vis_types/horizontal_bar.ts index c8494024d1d0a..f6d2a6e0e429a 100644 --- a/src/plugins/vis_types/xy/public/vis_types/horizontal_bar.ts +++ b/src/plugins/vis_types/xy/public/vis_types/horizontal_bar.ts @@ -56,7 +56,7 @@ export const horizontalBarVisTypeDefinition = { labels: { show: true, rotate: LabelRotation.Horizontal, - filter: false, + filter: true, truncate: 200, }, title: {}, diff --git a/src/plugins/vis_types/xy/public/vis_types/line.ts b/src/plugins/vis_types/xy/public/vis_types/line.ts index 08e17f7e97d46..3b6c9dc1a2084 100644 --- a/src/plugins/vis_types/xy/public/vis_types/line.ts +++ b/src/plugins/vis_types/xy/public/vis_types/line.ts @@ -74,7 +74,7 @@ export const lineVisTypeDefinition = { labels: { show: true, rotate: LabelRotation.Horizontal, - filter: false, + filter: true, truncate: 100, }, title: {