I have one requirement to use Dashboard in the custom component to show Horizontal Bars based on some data. The condition is it only need to show the horizontal bars from salesforce title and header footer will be customized.

I used chart.js to implement this which is working fine when locker services are deactivated but if I activate locker services it stops working.

Please give me quick suggerstions.

Thanks in Advance


Which version of ChartJS are you using? See https://developer.salesforce.com/blogs/developer-relations/2017/02/lockerservice-lightning-container-third-party-libraries-lightning-components.html.

Version 2.1.4 is known to work with Locker. Let us know if that's not what you experience.

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.