Skip to main content
100%

Customizing Axes

✓ Published0🌍 Public
Jjamesbnorman
Last edited Feb 27, 2020
Created on Feb 27, 2020
Forked from Customizing Axes

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 description
MIT Licensed

Similar vizzes