---
id: 587d7fab367417b2b2512bda
title: Create a Linear Scale with D3
required:
- src: 'https://cdnjs.cloudflare.com/ajax/libs/d3/4.3.0/d3.min.js'
challengeType: 6
videoUrl: ''
localeTitle: ''
---
## Description
undefined
## Instructions
undefined
## Tests
```yml
tests:
- text: ''
testString: 'assert($("h2").text() == "50", "The text in the h2
should be 50.");'
- text: ''
testString: 'assert(code.match(/\.scaleLinear/g), "Your code should use the scaleLinear()
method.");'
- text: ''
testString: 'assert(output == 50 && code.match(/scale\(\s*?50\s*?\)/g), "The output
variable should call scale
with an argument of 50.");'
```
## Challenge Seed
## Solution
```js
// solution required
```