@jan_blaha thank you for your answer but it still renders only one chart.
Based on your answer, I figured it out though:
If you separate the "creation" of the html element and the "creation" of the charts, it works as intended.
Here's the playground, if someone had my same problem
Playground test