February 2019
Beginner to intermediate
284 pages
6h 20m
English
In Chapter 4, Creating Charts, we used a simple plugin to add labels to pie slices. In this section, we will show you two others that allow a lot more customization. They are listed in the official documentation for Chart.js but are developed by third parties and should be installed or downloaded from their own repositories.
The chart-plugin-datalabels plugin offers the highly customizable labeling of values in all types of charts, with support for scripting and event handling. You can see several samples in chartjs-plugin-datalabels.netlify.com/samples/, where there is also a link to the documentation and the GitHub repository. The easiest way install it is with a CDN. Include the following code in ...