-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Open
Labels
v5This needs revision for D3 v5.xThis needs revision for D3 v5.x
Description
The original code for freakout()
has:
var colors = d3.schemeCategory20;
var colorIndex = Math.round(Math.random() *20);
D3 no longer provides the d3.schemeCategory20* categorical color schemes. These twenty-color schemes were flawed because their grouped design could falsely imply relationships in the data: a shared hue can imply that the encoded data are part of a group (a super-category), while relative lightness can imply order
To get it to work, I changed it to:
var colors = d3.schemeCategory10;
var colorIndex = Math.round(Math.random() *10);
Metadata
Metadata
Assignees
Labels
v5This needs revision for D3 v5.xThis needs revision for D3 v5.x