Skip to main content
100%

Customising Axes

✓ Published1🌍 Public
Bbenholvey
Last edited Jul 23, 2020
Created on Jul 21, 2020

This example shows current Premier League standings as a horizontal bar chart, with teams sorted by points and a custom-styled axis layout. It uses d3.scaleLinear for the x-axis, d3.scaleBand for the y-axis, and d3.axisLeft and d3.axisBottom to render the axes. The code removes default tick lines and domain paths for the y-axis, adds rotated titles, and uses CSS classes to style tick text and axis labels. The SVG rendering loads data from a CSV file.

AI-generated description

An example including some commonly used features of SVG.

MIT Licensed

Similar vizzes