1.1 KiB
1.1 KiB
id | title | required | challengeType | videoUrl | localeTitle | |||
---|---|---|---|---|---|---|---|---|
587d7fac367417b2b2512bdc | Use the d3.max and d3.min Functions to Find Minimum and Maximum Values in a Dataset |
|
6 |
Description
undefined
Instructions
undefined
Tests
tests:
- text: ''
testString: 'assert(output == 8 && $("h2").text() == "8", "The text in the <code>h2</code> should be 8.");'
- text: ''
testString: 'assert(code.match(/\.max/g), "Your code should use the <code>max()</code> method.")'
Challenge Seed
<body>
<script>
const positionData = [[1, 7, -4],[6, 3, 8],[2, 8, 3]]
// Add your code below this line
const output = undefined; // Change this line
// Add your code above this line
d3.select("body")
.append("h2")
.text(output)
</script>
</body>
Solution
// solution required