Finish D3.js US Rainfall Project — Adjust Color and Style
US Rainfall — Part 10
Previous Lessons
- Remove Characters from Beginning of JavaScript String
- Divide Large Data Set into Smaller Data Sets
- Handling Radio Buttons in D3.js
- Set Up SVG Viewport with D3.js
- D3.js Data Update Pattern
- D3.js Scales for x-Axis
- Use D3.js Data for x-coordinate Plotting
- Generate y-Axis with D3.js scaleLinear
- Set y-coordinate position with D3.js
Steps
Font
- create
rainfall.css
- link from html to css
- add attr class axis.
in rainfall.css
Add Chart Title
Create a new function that only uses local variables. Pass the new function the svg viewport, width, and height.
Draw the chart title at the top of the chart area.
Add title class to rainfall.css
Add Y-Axis Label
Add style