This video is available to students only

Adding the UV index marks

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

Adding the UV index marks#

Next, let's mark days that have a high UV index. But what does a "high UV index" mean? We'll need to make that decision ourselves -- let's define a "high UV day" as any day with a UV index over 8.

These kinds of decisions will come from your expertise as a subject matter expert. When setting a threshold like this in your own charts, think about what might be meaningful to the viewer.

Let's keep our code organized and keep our UV index lines within one group.


This page is a preview of Fullstack D3 Masterclass

No discussions yet