gth99 said... Until then, here's a simple though inelegant fix... replace the api_calls and api_colors definitions with the following:What does the change to 'api_colors' do? I'm assuming it needs to be accompanied by a change to some 'for' loops too, otherwise I don't think the 4th color will ever be accessed.
api_calls = ['radicals', 'kanji', 'vocabulary/1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25', 'vocabulary/26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50'];
api_colors = ['#0096e7', '#ee00a1', '#9800e8', '#9800e8'];
Or you can break it into smaller chunks, but this seems to work for me.
In the mean time, I've added your change to api_calls. Thanks for the tip!
[EDIT: there was also a condition "++counted == 3" that needed to be updated to "++counted == api_calls.length". Otherwise, the displayed data is inaccurate.]