All examples By author By category About

philgyford

D3.js v4 Ladder Graph

This is a ladder graph created in D3.js v4 that:

The data shows the fuel consumption and CO₂ emissions of cars, matched up with the "Eco rating" given when they were reviewed in the Guardian's 'On The Road' column, between July 2015 and July 2017.

You can view the data in a Google Sheet. Only conventional-fuel and hybrid cars are included.

Read more about the graph in my blog post.

For the difference between a slopegraph and a ladder graph, see Charlie Park's blog post.

View this as a gist or on bl.ocks.org.