Colours & D3

Steven Bergner

October 1, 2018

Choosing a colour palette

  • Continuous data: use colour gradient (sequential or diverging)
  • Categorical data: distinctive colors

  • Excellent source: LC Rost’s Friendly Guide to Colors

Color picking tools

Evolution of D3

Sources

Hitchhiker’s guide to D3

D3 API

  • Reference
  • Getting started guide
    • d3-scale maps data to marker attributes
    • d3-shape convenience functions
    • d3-selection, e.g. set attributes to chosen elements
    • d3-collection group similar things together
    • d3-hierarchy, e.g. to make treemaps
    • d3-zoom can show detail in context
    • d3-force for graph layouts