Dynamically Changing Charts

I'm trying to dynamically change some charts on Myfantasyleague.com based on the team names and colors. I can get this code to work when I'm testing via a local server on VS code, but when I load the code onto the live site, it doesn't function correctly. Can anyone tell me what I'm missing as to why these charts are not being reformatted?

Script I'm using
https://codepen.io/tvu1313/pen/vYwpwEP

Live Site
https://www45.myfantasyleague.com/2024/options?L=59840&O=207

apologies in advance for the team names haha.
The most customizable way to run your fantasy football league on the web today, MyFantasyLeague.com was voted 'Best Fantasy Commissioner Product' by the Fantasy Sports Trade Association, and has won several additional significant industry awards. Our 30 years of experience means we do fantasy football right. If you're ready to move beyond basi...
Was this page helpful?