How to draw pie chart using javascript | Community
Skip to main content
SahrudayaB
Level 2
December 28, 2021

How to draw pie chart using javascript

  • December 28, 2021
  • 1 reply
  • 2591 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

arunpatidar
Community Advisor
Community Advisor
December 28, 2021

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/

 

Arun Patidar
SahrudayaB
Level 2
December 28, 2021

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>

SahrudayaB
Level 2
December 29, 2021

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


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.