Skip to content

Commit d6464c4

Browse files
AndyB909christinaord28601581OzairGh
authored
Additional Comments (#17)
* Added comments for code to be used in graph component Co-authored-by: Christina Or <[email protected]> Co-authored-by: Peng Dong <[email protected]> Co-authored-by: Ozair Ghulam <[email protected]>
1 parent 4e79d09 commit d6464c4

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/app/components/BarGraph.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ const BarGraph = props => {
9595
return d.snapshotId;
9696
};
9797

98+
// returns snapshot id when invoked in tooltip section
9899
const formatSnapshotId = id => `Snapshot ID: ${id}`;
100+
// returns render time when invoked in tooltip section
99101
const formatRenderTime = time => `${time} ms `;
100102

101103
// create visualization SCALES with cleaned data

src/app/components/PerformanceVisx.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ const PerformanceVisx = (props: BarStackProps) => {
233233
/>
234234
);
235235
};
236-
236+
// create allRoutes variable to hold urls
237237
const allRoutes = [];
238238
const filteredSnapshots = [];
239239
// loop through data.barStack
@@ -275,6 +275,7 @@ const PerformanceVisx = (props: BarStackProps) => {
275275
// maxTotalRender height of bar is aligned to y-axis
276276
// 1.15 adjusts the numbers on the y-axis so the max bar's true height never reaches the max of the y-axis
277277
data.maxTotalRender = maxHeight * 1.15;
278+
// assign holdData to data.barStack to be used later to create graph
278279
if (holdData) data.barStack = holdData;
279280
}
280281

0 commit comments

Comments
 (0)