Skip to content

Commit

Permalink
Merge pull request #4774 from camptocamp/GSGMF-861
Browse files Browse the repository at this point in the history
Don't add y labels twice
  • Loading branch information
fredj committed Mar 26, 2019
2 parents 922f98b + 4313af8 commit 356ce46
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/profile/d3Elevation.js
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,10 @@ function d3Elevation(options) {
.style('stroke', '#ccc')
.style('opacity', 0.7);

// remove the text, it was already added in '.y.axis'
g.select('.grid-y').selectAll('.tick text')
.remove();

g.selectAll('.axis').selectAll('path, line')
.style('fill', 'none')
.style('stroke', '#000')
Expand Down

0 comments on commit 356ce46

Please sign in to comment.