---
id: 587d7fac367417b2b2512bdd
title: Use Dynamic Scales
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(output == 30 && $("h2").text() == "30", "The text in the h2
should be 30.");'
- text: ''
testString: 'assert(JSON.stringify(yScale.domain()) == JSON.stringify([0, 411]), "The domain()
of yScale should be equivalent to [0, 411]
.");'
- text: ''
testString: 'assert(JSON.stringify(yScale.range()) == JSON.stringify([470, 30]), "The range()
of yScale should be equivalent to [470, 30]
.");'
```
## Challenge Seed
## Solution
```js
// solution required
```