How to disable the minor ticks in d3 log scale?
问题 I have my real time d3 log scale graph like below: I would like to show only the major ticks with their labels : 10^-2, 10^-1, 10^0, 10^1, 10^2 but not the minor ticks I would like to have the log Y axis look like this without the minor ticks: How can I do this? EDIT: post some code svg = d3.select("#chart1").append("svg") .attr("width", width + margin.left + margin.right) .attr("height", height + margin.top + margin.bottom); y = d3.scale.log().domain([1e-1, 1e2]).range([height, 0]); yAxis =