freeCodeCamp/curriculum/challenges/arabic/04-data-visualization/data-visualization-with-d3/work-with-data-in-d3.arabic.md

66 lines
1.1 KiB
Markdown

---
id: 587d7fa7367417b2b2512bc4
title: Work with Data in D3
challengeType: 6
videoUrl: ''
localeTitle: ''
---
## Description
undefined
## Instructions
undefined
## Tests
<section id='tests'>
```yml
tests:
- text: ''
testString: 'assert($("h2").length == 9, "Your document should have 9 <code>h2</code> elements.");'
- text: ''
testString: 'assert($("h2").text().match(/New Title/g).length == 9, "The text in the <code>h2</code> elements should say "New Title". The capitalization and spacing should match exactly.");'
- text: ''
testString: 'assert(code.match(/\.data/g), "Your code should use the <code>data()</code> method.");'
- text: ''
testString: 'assert(code.match(/\.enter/g), "Your code should use the <code>enter()</code> method.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='html-seed'>
```html
<body>
<script>
const dataset = [12, 31, 22, 17, 25, 18, 29, 14, 9];
// Add your code below this line
// Add your code above this line
</script>
</body>
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>