File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ import { Grid } from "@visx/grid";
6
6
import { AxisBottom } from "@visx/axis" ;
7
7
import { scaleBand , scaleLinear , scaleOrdinal } from "@visx/scale" ;
8
8
import { useTooltip , useTooltipInPortal , defaultStyles } from "@visx/tooltip" ;
9
- import { LegendOrdinal } from "@visx/legend" ;
9
+ // import { LegendOrdinal } from "@visx/legend";
10
+ import { schemeSet1 } from "d3-scale-chromatic" ;
10
11
// import snapshots from "./snapshots";
11
12
12
13
@@ -48,9 +49,9 @@ const tooltipStyles = {
48
49
} ;
49
50
50
51
/* DATA PREP FUNCTIONS */
51
- const getPerfMetrics = snapshots => {
52
+ const getPerfMetrics = ( snapshots , snapshotsIds ) => {
52
53
return snapshots . reduce ( ( perfSnapshots , curSnapshot , idx ) => {
53
- return perfSnapshots . concat ( traverse ( curSnapshot , { snapshot : ++ idx } ) )
54
+ return perfSnapshots . concat ( traverse ( curSnapshot , { snapshotId : snapshotsIds [ idx ] } ) )
54
55
} , [ ] )
55
56
}
56
57
You can’t perform that action at this time.
0 commit comments