From b67d1cb71530d5eb0f83201937f7a9f59c6d5017 Mon Sep 17 00:00:00 2001 From: Nelson drew Date: Thu, 28 Mar 2024 20:50:15 +0530 Subject: [PATCH] Revert for legend scroll --- .../plugins/plugin-chart-echarts/src/utils/series.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/superset-frontend/plugins/plugin-chart-echarts/src/utils/series.ts b/superset-frontend/plugins/plugin-chart-echarts/src/utils/series.ts index ed551d81460e4..cebfe374d9cbd 100644 --- a/superset-frontend/plugins/plugin-chart-echarts/src/utils/series.ts +++ b/superset-frontend/plugins/plugin-chart-echarts/src/utils/series.ts @@ -264,7 +264,6 @@ export function extractSeries( sortSeriesAscending?: boolean; xAxisSortSeries?: SortSeriesType; xAxisSortSeriesAscending?: boolean; - timeseriesLimitMetric?: any; } = {}, ): [SeriesOption[], number[], number | undefined] { const { @@ -279,7 +278,6 @@ export function extractSeries( sortSeriesAscending, xAxisSortSeries, xAxisSortSeriesAscending, - timeseriesLimitMetric, } = opts; if (data.length === 0) return [[], [], undefined]; const rows: DataRecord[] = data.map(datum => ({ @@ -294,9 +292,7 @@ export function extractSeries( sortSeriesAscending, ); const sortedRows = - isDefined(xAxisSortSeries) && - isDefined(xAxisSortSeriesAscending) && - !timeseriesLimitMetric + isDefined(xAxisSortSeries) && isDefined(xAxisSortSeriesAscending) ? sortRows( rows, totalStackedValues,