Export Image
Export Code

D3 Color and Size Legends

guanaco76

Last edited Jan 03, 2024
Created on Jan 03, 2024

Color and Size Legends

Topics covered:

  • Creating a color legend component
  • Encoding area using a square root scale
  • Computing ticks from size scale
  • Creating a size legend component
  • Tweaking the styles
MIT Licensed