# Installation

## npm

[![npm](https://img.shields.io/npm/v/chartjs-plugin-piechart-outlabels-aars.svg?style=flat-square&maxAge=600)](https://npmjs.com/package/chartjs-plugin-piechart-outlabels)

    npm install chartjs-plugin-piechart-outlabels-aars --save

## CDN

[![jsdelivr](https://img.shields.io/npm/v/chartjs-plugin-piechart-outlabels-aars.svg?label=jsdelivr&style=flat-square&maxAge=600)](https://cdn.jsdelivr.net/npm/chartjs-plugin-piechart-outlabels-aars@latest/dist/)

By default, `https://cdn.jsdelivr.net/npm/chartjs-plugin-piechart-outlabels-aars/dist/chartjs-plugin-piechart-outlabels-aars.umd.min.js` returns the latest (minified) version, however it's **highly recommended** to always specify a version in order to avoid breaking changes. This can be achieved by appending `@{version}` to the url:

    https://cdn.jsdelivr.net/npm/chartjs-plugin-piechart-outlabels-aars@1.0.7/dist/chartjs-plugin-piechart-outlabels-aars.umd.min.js    // exact version
    https://cdn.jsdelivr.net/npm/chartjs-plugin-piechart-outlabels-aars@1/dist/chartjs-plugin-piechart-outlabels-aars.umd.min.js        // latest 1.x.x

Read more about jsDeliver versioning on their [website](http://www.jsdelivr.com/).

## Download

[![GitHub](https://img.shields.io/github/v/release/aaronicsubstances/chartjs-plugin-piechart-outlabels.svg?style=flat-square&maxAge=600)](https://github.com/aaronicsubstances/chartjs-plugin-piechart-outlabels/releases/latest)

You can download the latest version of `chartjs-plugin-piechart-outlabels-aars` from the [GitHub releases](https://github.com/aaronicsubstances/chartjs-plugin-piechart-outlabels/releases/latest):

- `chartjs-plugin-piechart-outlabels-aars.umd.js` (recommended for development)
- `chartjs-plugin-piechart-outlabels-aars.umd.min.js` (recommended for production)


## Registration

The plugin is no longer registered automatically, starting with 1.0.7.

To register it globally, use 

`Chart.register(OutLabelsPlugin)`


To register it per chart instance, add it to the toplevel plugins property of the chart's config object, like this:

```
{
    ...
    plugins: [OutLabelsPlugin]
}
```