# How can I import amCharts?

**URL:** <https://community.embeddable.com/t/how-can-i-import-amcharts/64>\
**Category:** FAQs\
**Created:** [July 12, 2024, 4:46pm UTC](https://community.embeddable.com/t/how-can-i-import-amcharts/64 "2024-07-12T16:46:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ella-embeddable](https://dub1.discourse-cdn.com/flex013/user_avatar/community.embeddable.com/ella-embeddable/32/15_2.png) [@ella-embeddable](https://community.embeddable.com/u/ella-embeddable)\
**Post date:** [July 12, 2024, 4:46pm UTC](https://community.embeddable.com/t/how-can-i-import-amcharts/64/1 "2024-07-12T16:46:18Z")

</div>

You can import amCharts to use in Embeddable like so:

`useLayoutEffect(() => {`  
` import('@amcharts/amcharts5').then((am5) => {`  
` import('@amcharts/amcharts5/xy.js').then((am5xy) => {`  
` import('@amcharts/amcharts5/themes/Animated.js').then((am5themes_Animated) => {`  
` setAm5({ am5, am5xy, am5themes_Animated });`  
` });`  
` });`  
` });`  
` }, []);`
