block by drzax 5468192eeaac702ec33d

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