Skip to content

Commit

Permalink
Round altitude value for elevation profile #439
Browse files Browse the repository at this point in the history
  • Loading branch information
lbesson authored Apr 10, 2019
1 parent 6f28614 commit ab4e700
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/views/document/utils/boxes/ElevationProfile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,7 @@
const formatDistance = d3.format('.2f');
const formatDate = d3.timeFormat('%H:%M');
const formatMinutes = d3.format('02d');
const formatElevation = d3.format('d');
const bisect = this.mode === 'distance' ? bisectDistance : bisectDate;
const x0 = this.mode === 'distance'
Expand All @@ -385,7 +386,7 @@
this.bubble1.text(
this.i18n_.elevation +
' ' +
d.ele +
formatElevation(d.ele) +
this.i18n_.meters +
' / ' +
this.i18n_.distance +
Expand Down

0 comments on commit ab4e700

Please sign in to comment.