d3 axis labeling
Axis labels aren’t built-in to D3’s axis component, but you can add labels yourself simply by adding an SVG text element. A good example of this is my recreation of Gapminderās animated bubble chart, The Wealth & Health of Nations. The x-axis label looks like this: svg.append(“text”) .attr(“class”, “x label”) .attr(“text-anchor”, “end”) .attr(“x”, width) .attr(“y”, … Read more