Lessons

Explore all newline lessons

Tags
Author
Pricing
Sort By
Video
Most Recent
Most Popular
Highest Rated
Reset
Color tips

lesson

Color tipsFullstack D3 Masterclass

We talk about a few tips & tricks for choosing effective, accessible colors for our data visualizations.

Color spaces

lesson

Color spacesFullstack D3 Masterclass

We learn about three color spaces (rgb, hsl, and hcl) and the pros and cons of each.

Custom color scales

lesson

Custom color scalesFullstack D3 Masterclass

We learn how to create our own custom color scales and specify their color space.

Destroying d3 event listeners

lesson

Destroying d3 event listenersFullstack D3 Masterclass

We can't let our event listeners hang around forever - we learn how to clean up after ourselves and cancel old ones.

React.js

lesson

React.jsFullstack D3 Masterclass

We are introduced to React.js and learn a basic principle for combining d3 + React.

Adding the tooltip

lesson

Adding the tooltipFullstack D3 Masterclass

Onto our last step: adding interactions! The tooltip we'll build will be unlike any you've seen before - it will follow the mouse all the way around our chart, highlight the relevant data elements, and describe the weather for that hovered date.

Adding annotations

lesson

Adding annotationsFullstack D3 Masterclass

We'll add annotations to our chart to tell our viewer what the different parts of the chart are showing. To do this, we'll create a generic function, since there are so many things to label.

Adding the precipitation bubbles

lesson

Adding the precipitation bubblesFullstack D3 Masterclass

Next, we learn about ordinal scales and create the inner ring of circles to show the precipitation probability and type for each day.

Adding the cloud cover bubbles

lesson

Adding the cloud cover bubblesFullstack D3 Masterclass

Next, we'll add our ring of circles around the outside to represent the amount of cloud cover for each day. We'll also learn something really important about visualizing data using circles.

Adding the UV index marks

lesson

Adding the UV index marksFullstack D3 Masterclass

We add marks to show which days are above a certain UV index threshold.

Adding the temperature area

lesson

Adding the temperature areaFullstack D3 Masterclass

We create a radial area shape, bounded by the min and max temperatures for each day. Then we create a gradient and use it to color our area.