Skip to content

Commit

Permalink
#172 round block lable
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Mrowetz committed Mar 7, 2017
1 parent eaf4927 commit 10406a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ts/waterfall/svg-chart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ export function createWaterfallSvg(data: WaterfallData, options: ChartOptions):
"cssClass": requestTypeToCssClass(entry.responseDetails.requestType),
"height": options.rowHeight,
"hideOverlay": options.showAlignmentHelpers ? mouseListeners.onMouseLeavePartial : undefined,
"label": entry.url + " (" + entry.start + "ms - " + entry.end + "ms | total: " + entry.total + "ms)",
"label": `${entry.url} (${Math.round(entry.start)}ms - ` +
`${Math.round(entry.end)}ms | total: ${Math.round(entry.total)}ms)`,
"showOverlay": options.showAlignmentHelpers ? mouseListeners.onMouseEnterPartial : undefined,
"unit": context.unit,
"width": entryWidth,
Expand Down

0 comments on commit 10406a4

Please sign in to comment.