diff --git a/src/profile/d3Elevation.js b/src/profile/d3Elevation.js index 2c339fe696fb..2231dba3b5c6 100644 --- a/src/profile/d3Elevation.js +++ b/src/profile/d3Elevation.js @@ -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')