Streaming live at 10am (PST)

Issue embedding canvas pie chart

Hello,

I’m trying to embed this canvas chart below:

As you can see it works perfectly fine in codepen but when I try to embed it in Webflow, it doesn’t work anymore.

Surprisingly another attempt works fine, but I need the colour version to work too.

The js has to be linked in the header in this way —> script src=“https://codepen.io/Waterbear83/pen/yLNqVBZ.js”></script

Or minified as it is over the character limit imposed by Webflow.

This is the read only link working:
https://preview.webflow.com/preview/experiencedemo?utm_medium=preview_link&utm_source=designer&utm_content=experiencedemo&preview=f955449e33639da319aa042031ae3fe5&pageId=5e740e828dfcacf34f588513&mode=preview

And this is the read only link not working with the color chart:
https://preview.webflow.com/preview/experiencedemo?utm_medium=preview_link&utm_source=designer&utm_content=experiencedemo&preview=f955449e33639da319aa042031ae3fe5&pageId=5e7535bd4c71bdb1443e19cb&mode=preview

Thanks