amCharts in Webflow custom code

Hi all,
I have an issue with amCharts. I have been trying to figure it out for a couple of days, but I can’t find a solution…

Basically, I would like to implement a chart using amCharts 5.
I copy-paste the basic example from the docs, but the chart does not show up.

I implemented a similar approach for ApexChart, amCharts4 and Chart.js, and it works…

Can someone help me understand if I am missing something or if there is a technical problem with amCharts?

Thanks a lot!!

Here is my site Read-Only:

Here is also the published test page

Ok guys.
I think I have found the issue.

The example on this page is not defining the size of the chart:

Just changed this:
div id=“chartdiv”

with this:
div id=“chartdiv” style=“width: 100%; height: 300px;”

and now it works.
It wasn’t related to Webflow, it is related to amCharts.

Hope this helps someone else for the future.