chore: audit data visualisation challenges (#41336)

* chore(learn): audit d3 projects

* chore: audit data vis

* chore: audit json apis

* Update curriculum/challenges/english/04-data-visualization/data-visualization-projects/visualize-data-with-a-scatterplot-graph.md

Co-authored-by: Shaun Hamilton <51722130+ShaunSHamilton@users.noreply.github.com>

* fix: apply suggestions

Co-authored-by: Shaun Hamilton <51722130+ShaunSHamilton@users.noreply.github.com>

* fix: no colour backticks

Co-authored-by: Shaun Hamilton <51722130+ShaunSHamilton@users.noreply.github.com>
Co-authored-by: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>

* Update curriculum/challenges/english/04-data-visualization/json-apis-and-ajax/get-geolocation-data-to-find-a-users-gps-coordinates.md

Co-authored-by: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Shaun Hamilton <51722130+ShaunSHamilton@users.noreply.github.com>

Co-authored-by: Shaun Hamilton <51722130+ShaunSHamilton@users.noreply.github.com>
Co-authored-by: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>
This commit is contained in:
Nicholas Carrigan (he/him)
2021-03-05 11:25:29 -08:00
committed by GitHub
parent 5075f14248
commit 16e420021c
41 changed files with 221 additions and 237 deletions

View File

@ -8,11 +8,11 @@ dashedName: style-d3-labels
# --description--
D3 methods can add styles to the bar labels. The `fill` attribute sets the color of the text for a `text` node. The `style()` method sets CSS rules for other styles, such as "font-family" or "font-size".
D3 methods can add styles to the bar labels. The `fill` attribute sets the color of the text for a `text` node. The `style()` method sets CSS rules for other styles, such as `font-family` or `font-size`.
# --instructions--
Set the `font-size` of the `text` elements to 25px, and the color of the text to red.
Set the `font-size` of the `text` elements to `25px`, and the color of the text to red.
# --hints--
@ -22,7 +22,7 @@ The labels should all have a `fill` color of red.
assert($('text').css('fill') == 'rgb(255, 0, 0)');
```
The labels should all have a `font-size` of 25 pixels.
The labels should all have a `font-size` of `25` pixels.
```js
assert($('text').css('font-size') == '25px');