2020-02-26 04:53:07 +00:00
---
id: 5d8a4cfbe6b6180ed9a1c9ed
title: Part 16
challengeType: 0
2021-01-13 02:31:00 +00:00
dashedName: part-16
2020-02-26 04:53:07 +00:00
---
2020-11-27 18:02:05 +00:00
# --description--
2020-02-26 04:53:07 +00:00
Add three more variables; `twitterColor` with a value of `#7cd9d1` , `tumblrColor` equal to `#f6dd71` , and `instagramColor` at `#fd9b98` . Make sure those Hex values are strings. These will be colors used to represent the different platforms throughout the project.
2020-11-27 18:02:05 +00:00
# --hints--
2020-02-26 04:53:07 +00:00
2020-11-27 18:02:05 +00:00
test-text
2020-02-26 04:53:07 +00:00
2020-11-27 18:02:05 +00:00
```js
assert(
twitterColor === '#7cd9d1' & &
tumblrColor === '#f6dd71' & &
instagramColor === '#fd9b98'
);
2020-02-26 04:53:07 +00:00
```
2020-11-27 18:02:05 +00:00
# --seed--
2020-02-26 04:53:07 +00:00
2020-11-27 18:02:05 +00:00
## --before-user-code--
2020-02-26 04:53:07 +00:00
```html
<!DOCTYPE html>
< html >
< head >
< title > D3 Dashboard< / title >
< style >
body {
background-color: #ccc ;
padding: 100px 10px;
}
.dashboard {
width: 980px;
height: 500px;
background-color: white;
box-shadow: 5px 5px 5px 5px #888 ;
margin: auto;
display: flex;
align-items: center;
}
< / style >
< / head >
< body >
< div class = "dashboard" > < / div >
< / body >
< / html >
```
2020-11-27 18:02:05 +00:00
## --seed-contents--
2020-02-26 04:53:07 +00:00
2020-11-27 18:02:05 +00:00
```html
< script >
const data = [
{ year: 2012, followers: { twitter: 2594, tumblr: 401, instagram: 83 }},
{ year: 2013, followers: { twitter: 3049, tumblr: 440, instagram: 192 }},
{ year: 2014, followers: { twitter: 3511, tumblr: 415, instagram: 511 }},
{ year: 2015, followers: { twitter: 3619, tumblr: 492, instagram: 1014 }},
{ year: 2016, followers: { twitter: 4046, tumblr: 543, instagram: 2066 }},
{ year: 2017, followers: { twitter: 3991, tumblr: 701, instagram: 3032 }},
{ year: 2018, followers: { twitter: 3512, tumblr: 1522, instagram: 4512 }},
{ year: 2019, followers: { twitter: 3274, tumblr: 1989, instagram: 4715 }},
{ year: 2020, followers: { twitter: 2845, tumblr: 2040, instagram: 4801 }}
];
< / script >
< script >
const svgMargin = 70,
svgWidth = 700,
svgHeight = 500;
< / script >
```
2020-02-26 04:53:07 +00:00
2020-11-27 18:02:05 +00:00
# --solutions--
2020-02-26 04:53:07 +00:00
```html
< script >
const data = [
{ year: 2012, followers: { twitter: 2594, tumblr: 401, instagram: 83 }},
{ year: 2013, followers: { twitter: 3049, tumblr: 440, instagram: 192 }},
{ year: 2014, followers: { twitter: 3511, tumblr: 415, instagram: 511 }},
{ year: 2015, followers: { twitter: 3619, tumblr: 492, instagram: 1014 }},
{ year: 2016, followers: { twitter: 4046, tumblr: 543, instagram: 2066 }},
{ year: 2017, followers: { twitter: 3991, tumblr: 701, instagram: 3032 }},
{ year: 2018, followers: { twitter: 3512, tumblr: 1522, instagram: 4512 }},
{ year: 2019, followers: { twitter: 3274, tumblr: 1989, instagram: 4715 }},
{ year: 2020, followers: { twitter: 2845, tumblr: 2040, instagram: 4801 }}
];
< / script >
< script >
const svgMargin = 70,
svgWidth = 700,
svgHeight = 500,
twitterColor = '#7cd9d1',
tumblrColor = '#f6dd71',
instagramColor = '#fd9b98';
< / script >
```