mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-22 19:02:54 -04:00
fix(curriculum): corrected wrong usage of it's contraction (#48254)
* replaced it's value by its value in 04-data-visualization challenge * Fix it's default size typo in 14-responsive-web-design challenge * Fix it's scaleLinear method typo in 04-data-visualization challenge * Removed changes to non-English files Co-authored-by: Sem Bauke <semboot699@gmail.com>
This commit is contained in:
committed by
GitHub
parent
e2da8dae3c
commit
2ae2c38be2
@@ -7,7 +7,7 @@ dashedName: step-21
|
||||
|
||||
# --description--
|
||||
|
||||
Your line graph needs some scales so it knows how to translate the data into visual distances. The first one is the scale for the y-axis. It will be to show the number of followers. D3 has many utilities for creating scales. You want to use it's `scaleLinear` method for this scale.
|
||||
Your line graph needs some scales so it knows how to translate the data into visual distances. The first one is the scale for the y-axis. It will be to show the number of followers. D3 has many utilities for creating scales. You want to use its `scaleLinear` method for this scale.
|
||||
|
||||
Create a new `const` named `yScale`, and set it equal to `d3.scaleLinear()`.
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ d3.values(data[8].followers)
|
||||
|
||||
It will be an array with the values of the followers for the three platforms in 2020.
|
||||
|
||||
Note that this "d function" has curly brackets. So you could `console.log(values)` in there to see it's value.
|
||||
Note that this "d function" has curly brackets. So you could `console.log(values)` in there to see its value.
|
||||
|
||||
# --hints--
|
||||
|
||||
|
||||
Reference in New Issue
Block a user