Accepted answer

perhaps you can look at this example to add Minor ticks and Major ticks.

you can use the attribute stroke-dasharray to create dashed lines. It depends on the structure of your svg, but you can select the lines and add this attribute.


d3.selectAll("g.tick line").attr("stroke-dasharray", "5 5")

Related Query