The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

proebuck (60) [Avatar] Offline
You provide one code example with callouts. The next paragraph then talks about changing range from 3 to 5. But the following code for 'colorQuantize' variable still references 3. And 'Reds' variable needs its namespace.

var colorQuantize = d3.scale.quantize().domain([0, maxValue]).range(Reds[3]);

Shouldn't that be instead:

var colorQuantize = d3.scale.quantize().domain([0, maxValue]).range(colorbrewer.Reds[5]);
elijah.meeks (127) [Avatar] Offline
Re: 3.2 Color Ramps 4 Numerical Data
That's right, and should already be corrected in the next MEAP. But thanks for noting it!