---
id: 587d7fa7367417b2b2512bc5
title: Work with Dynamic Data in D3
required:
- src: 'https://cdnjs.cloudflare.com/ajax/libs/d3/4.3.0/d3.min.js'
challengeType: 6
videoUrl: ''
localeTitle: ''
---
## Description
undefined
## Instructions
undefined
## Tests
```yml
tests:
- text: ''
testString: 'assert($("h2").eq(0).text() == "12 USD", "The first h2
should have the text "12 USD".");'
- text: ''
testString: 'assert($("h2").eq(1).text() == "31 USD", "The second h2
should have the text "31 USD".");'
- text: ''
testString: 'assert($("h2").eq(2).text() == "22 USD", "The third h2
should have the text "22 USD".");'
- text: ''
testString: 'assert($("h2").eq(3).text() == "17 USD", "The fourth h2
should have the text "17 USD".");'
- text: ''
testString: 'assert($("h2").eq(4).text() == "25 USD", "The fifth h2
should have the text "25 USD".");'
- text: ''
testString: 'assert($("h2").eq(5).text() == "18 USD", "The sixth h2
should have the text "18 USD".");'
- text: ''
testString: 'assert($("h2").eq(6).text() == "29 USD", "The seventh h2
should have the text "29 USD".");'
- text: ''
testString: 'assert($("h2").eq(7).text() == "14 USD", "The eighth h2
should have the text "14 USD".");'
- text: ''
testString: 'assert($("h2").eq(8).text() == "9 USD", "The ninth h2
should have the text "9 USD".");'
```
## Challenge Seed
## Solution
```js
// solution required
```