Customizing Axes
✓ Published0🌍 Public
This example shows a horizontal bar chart comparing bot-generated versus human search phrases. The bars are colored steel blue, with a custom y-axis listing phrase names and a formatted x-axis displaying counts. Built with D3 v5, it uses `scaleLinear` and `scaleBand` for positioning, and `axisLeft` and `axisBottom` to render the axes. The x-axis tick format uses `format(".2s")` to abbreviate large numbers and replaces 'G' with 'B'. Data is loaded from a CSV file via `csv`, and the chart renders to SVG.
AI-generated descriptionMIT Licensed