d3-axis icon indicating copy to clipboard operation
d3-axis copied to clipboard

An option to disable the domain line

Open mbostock opened this issue 4 years ago • 1 comments

The g.select(".domain").remove() pattern here is frequent:

svg.append("g")
      .attr("transform", `translate(${marginLeft},0)`)
      .call(yAxis)
      .call(g => g.select(".domain").remove())

It’d be nice if we could prevent the axis from creating that in the first place, especially for transitions.

mbostock avatar Oct 14 '21 16:10 mbostock

It is frequent indeed. I do this all the time. An option to disable it would be very nice!

curran avatar Oct 14 '21 20:10 curran