Moved svg declaration into html.
Added legend showing the colors for each category, each in their own small svg.
- Set bar labels to activity (what's on the right of the colon, rather than to the entire key).
- Set up color functions by limiting range instead of domain for greater simplicity.