--- id: 5d8a4cfbe6b6180ed9a1ca47 title: Part 104 challengeType: 0 dashedName: part-104 --- # --description-- Chain a `text` function to set the text of each pie slice to a percentage. Set the value to a "d function" with curly brackets and leave the function empty for now. It should look like this: ```js .text(d => { }) ``` The method for getting the percent of each slice will take a few steps: 1. Find the total number of followers for the displayed year 2. Divide the followers of a single platform by that total 3. Turn it into a string to display # --hints-- test-text ```js assert(/\.append\('text'\)\s*\.text\s*\(\s*d\s*=>\s*\{\s*\}\s*\)/g.test(code)); ``` # --seed-- ## --before-user-code-- ```html D3 Dashboard
``` ## --seed-contents-- ```html ``` # --solutions-- ```html ```