Percentage window shading throughout the year

Hi everyone. I was trying to test out the effectiveness of a shading device I designed for a window through a script that calculates the shading percentage for hour of the year. But the script seems to not update the chart that gets generated at the end. I’m fairly new to grasshopper and can’t seem to figure out what the problem is. Any help would be highly appreciated!

This is the chart I’m trying to make:

Can’t upload the script as I’m a new user :frowning:

Here’s how the script looks:

Did you ever get this figured out?