Skip to Content
Learning Salesforce Lightning Application Development
book

Learning Salesforce Lightning Application Development

by Mohit Shrivatsava
July 2018
Beginner to intermediate
458 pages
9h 58m
English
Packt Publishing
Content preview from Learning Salesforce Lightning Application Development

ChartJs in Lightning Components

ChartJs is an open source JavaScript library that allows us to create various types of charts, such as line, bar, pie, and stacked charts, and many more. The library can be explored at https://www.ChartJs.Org/.

In this section, we will see a simple example of how to include the ChartJs library in Lightning Components and build visualizations with a dataset. 

The steps to integrate this library are the same as those in the preceding sections. The ChartJs library works well under Locker Service so there are no extra transformations required to integrate it.

The steps to create a Lightning Component with ChartJs are as follows:

  1. Create a static resource hosting the ChartJs library; download the ChartJs library ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Application Development with Force.com

Mastering Application Development with Force.com

Kevin J. Poorman
Learning Salesforce Einstein

Learning Salesforce Einstein

Mohit Shrivatsava, Raghuver Parupalli

Publisher Resources

ISBN: 9781787124677Supplemental Content