Skip to content

Commit

Permalink
Revert for legend scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsondrew committed Mar 28, 2024
1 parent f6265d0 commit b67d1cb
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,6 @@ export function extractSeries(
sortSeriesAscending?: boolean;
xAxisSortSeries?: SortSeriesType;
xAxisSortSeriesAscending?: boolean;
timeseriesLimitMetric?: any;
} = {},
): [SeriesOption[], number[], number | undefined] {
const {
Expand All @@ -279,7 +278,6 @@ export function extractSeries(
sortSeriesAscending,
xAxisSortSeries,
xAxisSortSeriesAscending,
timeseriesLimitMetric,
} = opts;
if (data.length === 0) return [[], [], undefined];
const rows: DataRecord[] = data.map(datum => ({
Expand All @@ -294,9 +292,7 @@ export function extractSeries(
sortSeriesAscending,
);
const sortedRows =
isDefined(xAxisSortSeries) &&
isDefined(xAxisSortSeriesAscending) &&
!timeseriesLimitMetric
isDefined(xAxisSortSeries) && isDefined(xAxisSortSeriesAscending)
? sortRows(
rows,
totalStackedValues,
Expand Down

0 comments on commit b67d1cb

Please sign in to comment.