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.

356886 (1) [Avatar] Offline
I cannot figure out how to get the pie-chart transition to work in Chapter 5. I started with the code from Fig_05_06.html and tried to update it with the code given on pages 146 to 148. I get the final pie image (the right-hand image in Figure 5.7) and a sort-of transition thing going, but it definitely does not start with the pie I'm supposed to be starting with (the left-hand image in Figure 5.7).

Can somebody provide the complete code for this pie-chart transition? Thanks.
aishaolang (6) [Avatar] Offline
The left chart from Figure 5.7 uses the the number of favorites. Hope this helps.

pieChart.value(function(d) {
    return d.numFavorites;