score:1

Accepted answer

perhaps you can look at this example to add Minor ticks and Major ticks. https://bl.ocks.org/erikvullings/41be28677574fd484b43e91413a7e45d

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.

example:

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

Related Query