[Metrics UI] Remove points from charts on Metrics Explorer and Detail Page (#49500) (#49687)

* Removing points from Metrics Explorer and Metric Detail Page; Fixing bug with metric detail page labels;

* Remove points configuration
This commit is contained in:
Chris Cowan 2019-10-29 16:03:37 -07:00 committed by GitHub
parent d79bbabaa9
commit d80895cdf3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 14 deletions

View file

@ -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}

View file

@ -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: [],

View file

@ -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 (
<AreaSeries
@ -87,7 +81,7 @@ export const MetricsExplorerAreaChart = ({ metric, id, series, type, stack }: Pr
);
};
export const MetricsExplorerBarChart = ({ metric, id, series, type, stack }: Props) => {
export const MetricsExplorerBarChart = ({ metric, id, series, stack }: Props) => {
const color =
(metric.color && colorTransformer(metric.color)) ||
colorTransformer(MetricsExplorerColor.color0);