block by eesur a4679ee453aa9357977c

d3 | Reusable slopegraph

Full Screen

Reusable slopegraph inspired/adapted from Ben Van Dyke’s example into a reusable chart.

This slopegraph example shows the number of personal computers installed in a country per household. This includes desktop PCs and laptops, but excludes smartphones and terminals connected to mainframe computers. All figures are calculated using total number of Personal Computers and the Total Number of Households.

data source

index.html

d3_code_slopegraph.js

data.json

main.css