d3 / d3-axis

Human-readable reference marks for scales.

Home Page:https://d3js.org/d3-axis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

An option to disable the domain line

mbostock opened this issue · 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.

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