Skip to content

Commit 10406a4

Browse files
author
Michael Mrowetz
committed
#172 round block lable
1 parent eaf4927 commit 10406a4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: src/ts/waterfall/svg-chart.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ export function createWaterfallSvg(data: WaterfallData, options: ChartOptions):
161161
"cssClass": requestTypeToCssClass(entry.responseDetails.requestType),
162162
"height": options.rowHeight,
163163
"hideOverlay": options.showAlignmentHelpers ? mouseListeners.onMouseLeavePartial : undefined,
164-
"label": entry.url + " (" + entry.start + "ms - " + entry.end + "ms | total: " + entry.total + "ms)",
164+
"label": `${entry.url} (${Math.round(entry.start)}ms - ` +
165+
`${Math.round(entry.end)}ms | total: ${Math.round(entry.total)}ms)`,
165166
"showOverlay": options.showAlignmentHelpers ? mouseListeners.onMouseEnterPartial : undefined,
166167
"unit": context.unit,
167168
"width": entryWidth,

0 commit comments

Comments
 (0)