---
id: 587d7fa7367417b2b2512bc4
title: Work with Data in D3
challengeType: 6
videoUrl: ''
localeTitle: ''
---
## Description
undefined
## Instructions
undefined
## Tests
```yml
tests:
- text: ''
testString: 'assert($("h2").length == 9, "Your document should have 9 h2
elements.");'
- text: ''
testString: 'assert($("h2").text().match(/New Title/g).length == 9, "The text in the h2
elements should say "New Title". The capitalization and spacing should match exactly.");'
- text: ''
testString: 'assert(code.match(/\.data/g), "Your code should use the data()
method.");'
- text: ''
testString: 'assert(code.match(/\.enter/g), "Your code should use the enter()
method.");'
```
## Challenge Seed
## Solution
```js
// solution required
```