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

1.1 KiB

id title 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