---
id: 5d8a4cfbe6b6180ed9a1c9f6
title: Part 25
challengeType: 0
---
## Description
The `year` values of your data will be used for the x-scale. Chain the `domain` function to `xScale` and pass it an array with the first and last years of your data.
## Instructions
## Tests
```yml
tests:
- text: test-text
testString: const domain = xScale.domain(); assert(domain.length === 2 && domain[0] === 2012 && domain[1] === 2020);
```
## Challenge Seed
```html
```
### Before Test
## Solution