Skip to content

Instantly share code, notes, and snippets.

@redblobgames
Last active October 17, 2016 23:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save redblobgames/724411560f4796c90f6e9a0e9405d802 to your computer and use it in GitHub Desktop.
Save redblobgames/724411560f4796c90f6e9a0e9405d802 to your computer and use it in GitHub Desktop.
which d3 apis do people use
license: mit
border: yes
scrolling: yes

I was curious about which d3 apis people use in their blocks.

  1. I count if it's used or not, not often it's used in a block.
  2. Columns and rows are sorted by popularity.
  3. I color by how often something is used relative to that user's most commonly used api
  4. people who have blue/green filled rows use many different apis evenly, whereas people who have one blue and mostly red use some apis frequently and others infrequently
  5. I combined some calls, like select+selectAll, min+max, hsl+rgb+hcl+lab, etc., to reduce the number of columns
  6. ascending/descending are commonly used (column is towards the left) but not often by the most prolific block authors (towards the top)

(I would love to set the table headers not to scroll but have forgotten how to do that)

This file has been truncated, but you can view the full file.
View raw

(Sorry about that, but we can’t show files that are this big right now.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment