--- id: 5d8a4cfbe6b6180ed9a1ca42 title: Part 101 challengeType: 0 --- ## Description
Back at the bottom, where you draw the chart. Use the `attr` function to set the `fill` to a "d function". In the "d function", use your `pieColors` scale to get the color value for the platform(`d.data.key`). So when each platform is passed to your scale, is will get the appropriate color to use as the fill from the scales range.
## Instructions
## Tests
```yml tests: - text: test-text testString: const pathsArr = $('.dashboard div svg g path'); assert(pathsArr[0].getAttribute('fill') === '#7cd9d1' && pathsArr[1].getAttribute('fill') === '#f6dd71' && pathsArr[2].getAttribute('fill') === '#fd9b98'); ```
## Challenge Seed
```html ```
### Before Test
```html D3 Dashboard
```
## Solution
```html ```