Another example of a surplus/deficit filled line chart. The colour of each section encodes the party that was in power during that period. Uses d3-annotation for labels on hover.
See Surplus/deficit filled line I for how I use a mask colour deficit and surplus areas separately.
This is part of a series of visualisations called My Visual Vocabulary which aims to recreate every visualisation in the FT's Visual Vocabulary from scratch using D3.
forked from tlfrd's block: Surplus/deficit filled line II
https://d3js.org/d3.v4.min.js