1.2 KiB
1.2 KiB
id | title | required | challengeType | videoUrl | localeTitle | |||
---|---|---|---|---|---|---|---|---|
587d7fa7367417b2b2512bc4 | Work with Data in D3 |
|
6 |
Description
undefined
Instructions
undefined
Tests
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.");'
Challenge Seed
<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>
Solution
// solution required