3 ms·
The code for this is neat and impressively short, anyone looking to see the power of D3 should check it out: https://gist.github.com/wrr/4750218 https://gist.gi
by paulgb 14y ago
The code for this is neat and impressively short, anyone looking to see the power of D3 should check it out: https://gist.github.com/wrr/4750218 https://gist.github.com/wrr/4750218
My only suggestion is that .data([color_idx]) would be more idiomatic (I think) if it were .datum(color_idx)
- mixedbit 14y agoThanks! It is now changed to datum().