I’m doing the third final project of the Data Visualization course, and I’m trying to plot the temperatures onto the chart according to year/month.
The rectangles plotted onto the chart are supposed to change color depending on their temperature. I’ve put in a function in the class assignment for the rectangles to do that, but they only change color for the lowest and highest numbers, nothing in between.
I feel like I’m missing something obvious, but I can’t put my finger on it. Any help is appreciated!
Check the conditions that decide what class to apply to the element. (d.variance <= 3.9) This is your first condition, which applies the .temp-01 class and its valid for 99% of your elements. Theire variance is bellow 3.9
You forgot to add BASE value to d.variance in the first condition