Skip to content

Commit

Permalink
Fill DataSeries with mismatched data sets so all DataSeries have matc…
Browse files Browse the repository at this point in the history
…hing data structures
  • Loading branch information
envex committed Nov 7, 2023
1 parent 8ecfc59 commit 160a053
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions packages/polaris-viz/src/utilities/fillMissingDataPoints.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
import type {DataSeries} from '@shopify/polaris-viz-core';

export function fillMissingDataPoints(dataSeries: DataSeries[]) {
const areAnyDataLengthsDifferent = dataSeries.some(
({data}) => data.length !== dataSeries[0].data.length,
);

if (!areAnyDataLengthsDifferent) {
return dataSeries;
}

const allKeys = new Set<string>();
const dataValueMap: {[key: number]: {[key: string]: number | null}} = {};

Expand Down

0 comments on commit 160a053

Please sign in to comment.