From 06a477899154fe8f839c334904d15839143a3ed8 Mon Sep 17 00:00:00 2001 From: Chris Cowan Date: Tue, 29 Oct 2019 14:12:55 -0700 Subject: [PATCH] [Metrics UI] Remove points from charts on Metrics Explorer and Detail Page (#49500) * Removing points from Metrics Explorer and Metric Detail Page; Fixing bug with metric detail page labels; * Remove points configuration --- .../public/components/metrics/sections/chart_section.tsx | 2 +- .../public/components/metrics/sections/series_chart.tsx | 6 ------ .../public/components/metrics_explorer/series_chart.tsx | 8 +------- 3 files changed, 2 insertions(+), 14 deletions(-) diff --git a/x-pack/legacy/plugins/infra/public/components/metrics/sections/chart_section.tsx b/x-pack/legacy/plugins/infra/public/components/metrics/sections/chart_section.tsx index d3faad218f606..e13b8134e38dd 100644 --- a/x-pack/legacy/plugins/infra/public/components/metrics/sections/chart_section.tsx +++ b/x-pack/legacy/plugins/infra/public/components/metrics/sections/chart_section.tsx @@ -126,7 +126,7 @@ export const ChartSection = ({ key={`series-${section.id}-${series.id}`} id={`series-${section.id}-${series.id}`} series={series} - name={getChartName(section, series.id, series.label)} + name={getChartName(section, series.id, series.id)} type={getChartType(section, series.id)} color={getChartColor(section, series.id)} stack={visConfig.stacked} diff --git a/x-pack/legacy/plugins/infra/public/components/metrics/sections/series_chart.tsx b/x-pack/legacy/plugins/infra/public/components/metrics/sections/series_chart.tsx index 15df72dbdfd56..9dc7004837064 100644 --- a/x-pack/legacy/plugins/infra/public/components/metrics/sections/series_chart.tsx +++ b/x-pack/legacy/plugins/infra/public/components/metrics/sections/series_chart.tsx @@ -45,12 +45,6 @@ export const AreaChart = ({ id, color, series, name, type, stack }: Props) => { strokeWidth: InfraMetricLayoutVisualizationType.area === type ? 1 : 2, visible: true, }, - point: { - visible: true, - radius: 1, - strokeWidth: 2, - opacity: 1, - }, }; const colors: DataSeriesColorsValues = { colorValues: [], diff --git a/x-pack/legacy/plugins/infra/public/components/metrics_explorer/series_chart.tsx b/x-pack/legacy/plugins/infra/public/components/metrics_explorer/series_chart.tsx index 5b70b0cef083a..8c3c80e0a3852 100644 --- a/x-pack/legacy/plugins/infra/public/components/metrics_explorer/series_chart.tsx +++ b/x-pack/legacy/plugins/infra/public/components/metrics_explorer/series_chart.tsx @@ -63,12 +63,6 @@ export const MetricsExplorerAreaChart = ({ metric, id, series, type, stack }: Pr opacity: 0.5, visible: type === MetricsExplorerChartType.area, }, - point: { - visible: true, - radius: 2, - strokeWidth: 2, - opacity: 1, - }, }; return ( { +export const MetricsExplorerBarChart = ({ metric, id, series, stack }: Props) => { const color = (metric.color && colorTransformer(metric.color)) || colorTransformer(MetricsExplorerColor.color0);