0

I am trying to draw different types of Charts e.g. Bar Chart, Pie Chart,Stacked Bar and Column Chart etc. in Lightning Component. Can anyone please suggest me how to draw using SLDS. Link : https://www.lightningdesignsystem.com/guidelines/charts/

3
1

Unfortunately, the SLDS examples are simply design examples... Salesforce has not provide a way to create charts in LWC or Aura components. You will need to use a third-party library for that.

The Salesforce Developer's Blog includes an example of using Chart.js that can be installed via an unmanaged package. The article is a bit old, but was useful for me a while back.

https://developer.salesforce.com/blogs/developer-relations/2017/03/building-lightning-components-chart-js.html

1
  • Used analytics:reportChart for my project. Thanks to all. – Diganta May 11 '20 at 14:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.