adding tooltips to pie chart using d3.js
I am embarking on a journey to learn to visualize data using d3.js, and so far I am finding the "Interactive Data Visualization" by Scott Murray very helpful. I was following through some of the example codes in book chapter 11, and was wondering how I would add the tooltip to the pie chart (the book already describes this procedure using the bar chart). Anyways, just been tinkering around with the codes for past couple of hours and would like to see if anyone can lend me a hand on this: <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>D3: Pie layout</title> <script type=