Skip to main content
100%

Customizing Axes

✓ Published0🌍 Public
JJefferson Abreu
Last edited Jul 16, 2019
Created on Jul 12, 2019
Forked from Teste de Bar char

This example shows a horizontal bar chart of the ten most populous countries, with a customized axis layout and formatting. It uses D3 v5 with `csv`, `scaleLinear`, and `scaleBand` to map population values and country names, while `axisBottom` and `axisLeft` render the axes. Axis ticks are formatted with `format(".3s")` to abbreviate numbers, and grid lines are styled via CSS. The SVG is drawn with `select` and appended `rect` elements, and the legend titles are added as text elements.

AI-generated description

An example showing the capabilities of VizHub.

MIT Licensed

Similar vizzes