Currently browsing tag

D3.js

Pie in the Sky, with D3

The world is divided in beer drinkers and wine lovers. Let’s illustrate this with a pie chart, using D3 for all the rendering work. First, we need some data: The pie data for plotting can be created with D3’s pie layout. By default, the slices will start from the 12 …