The problem is that the chart is getting the default colors, not the ones I’m setting.
And the arrays
CanvasJS.addColorSet("colorSet1", colorSet1);
CanvasJS.addColorSet("colorSet2", colorSet2);
CanvasJS.addColorSet("colorSet3", colorSet3);
CanvasJS.addColorSet("colorSet4", colorSet4);
are all being properly populated.