Use the anonymous function used to set the color of the circle as an example and edit the radius of the circle.
You can't copy and paste this in. You must modify the code below and use a similar concept to change the radius of the circle.
Instead of the color scale, you must use the scale for the size of the circle.
- Explain anonymous function
- Identify attributes in the HTML code
- review how d gets into the function
- Start your block of code to add the title above the update loop.
- use
svg.append()to insert the element to add a piece of text- the element you need to add is called text
- chain the keyword
.textto append - use these attributes using the
.attrkeywordxytext
- modify temperature text to be of class
.temperature- add theclassattribute - remove
.temperatureclass inside of update loop
- Add class for title onto text element for the graph title
- use
.attr("class")that you used in the previous section
- use
- create css file
- link from HTML file to CSS file
var width = 800;
var height = 400;
- width and height of viewport
- cx, cy of circle
- text elements



