File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,9 @@ const BarGraph = props => {
95
95
return d . snapshotId ;
96
96
} ;
97
97
98
+ // returns snapshot id when invoked in tooltip section
98
99
const formatSnapshotId = id => `Snapshot ID: ${ id } ` ;
100
+ // returns render time when invoked in tooltip section
99
101
const formatRenderTime = time => `${ time } ms ` ;
100
102
101
103
// create visualization SCALES with cleaned data
Original file line number Diff line number Diff line change @@ -233,7 +233,7 @@ const PerformanceVisx = (props: BarStackProps) => {
233
233
/>
234
234
) ;
235
235
} ;
236
-
236
+ // create allRoutes variable to hold urls
237
237
const allRoutes = [ ] ;
238
238
const filteredSnapshots = [ ] ;
239
239
// loop through data.barStack
@@ -275,6 +275,7 @@ const PerformanceVisx = (props: BarStackProps) => {
275
275
// maxTotalRender height of bar is aligned to y-axis
276
276
// 1.15 adjusts the numbers on the y-axis so the max bar's true height never reaches the max of the y-axis
277
277
data . maxTotalRender = maxHeight * 1.15 ;
278
+ // assign holdData to data.barStack to be used later to create graph
278
279
if ( holdData ) data . barStack = holdData ;
279
280
}
280
281
You can’t perform that action at this time.
0 commit comments