Esta conversación ha sido bloqueada debido a la inactividad. Cree una nueva publicación.
Nivel 1
Nivel 2
Iniciar sesión en la comunidad
Iniciar sesión para ver todas las insignias
Esta conversación ha sido bloqueada debido a la inactividad. Cree una nueva publicación.
How to draw pie chart using javascript in AEM 6.5 and also how can I include script src links in js client library folder.
Vistas
Respuestas
Total de me gusta
Hi,
AEM does not provide any OOTB library to create pie charts.
you can explore some third party libraries e.g. https://www.anychart.com/blog/2017/12/06/pie-chart-create-javascript/
Vistas
Respuestas
Total de me gusta
ok but how can I include these links in js file.
<script src="https://cdn.anychart.com/releases/8.0.1/js/anychart-core.min.js"></script>
<script src="https://cdn.anychart.com/releases/8.0.1/js/anychart-pie.min.js"></script>
Vistas
Respuestas
Total de me gusta
Hi @SahrudayaB ,
You can include these external scripts in html file of page/headerlibs.
https://sourcedcode.com/blog/aem/how-to-include-javascript-for-an-aem-website
https://www.sfu.ca/cms/howto/advanced/style-a-page/customjavascript.html
Regards,
Santosh
Vistas
Respuestas
Total de me gusta
I'm using AEM 6.5. I cannot see "custom stylesheet and javascript" in advanced tab under page properties. Where can I add external js file.
Vistas
Respuestas
Total de me gusta
I was unable to add external script in html (html file in component). And also in js folder in client library. How can I add the third party library for adding pie chart.
Vistas
Respuestas
Total de me gusta
Hi,
You can also directly add the below lines in component htl
<script defer src="https://cdn.anychart.com/releases/8.0.1/js/anychart-core.min.js"></script>
<script defer src="https://cdn.anychart.com/releases/8.0.1/js/anychart-pie.min.js"></script>
Vistas
Respuestas
Total de me gusta
Vistas
me gusta
Respuestas
Vistas
me gusta
Respuestas
Vistas
me gusta
Respuestas
Vistas
me gusta
Respuestas
Vistas
me gusta
Respuestas