# chartjs-plugin-datalabels

> Chart.js plugin to display labels on data elements

Latest version **2.2.0** (published 2022-12-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install chartjs-plugin-datalabels
pnpm add chartjs-plugin-datalabels
yarn add chartjs-plugin-datalabels
bun add chartjs-plugin-datalabels
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.2.0 |
| Published | 2022-12-10 |
| First published | 2017-09-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 90.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 920 |
| Maintainers | simonbrunel, chartjs-ci |
| Keywords | chart.js, plugin, label |

## Links

- npm: https://www.npmjs.com/package/chartjs-plugin-datalabels
- Repository: https://github.com/chartjs/chartjs-plugin-datalabels
- Homepage: https://chartjs-plugin-datalabels.netlify.app
- Issues: https://github.com/chartjs/chartjs-plugin-datalabels/issues
- npm.io page: https://npm.io/package/chartjs-plugin-datalabels

## Alternatives

- [d3-force-3d](https://npm.io/package/d3-force-3d.md) — 1.0M weekly downloads
- [ng2-charts](https://npm.io/package/ng2-charts.md) — 486.8K weekly downloads
- [@arcgis/core](https://npm.io/package/@arcgis/core.md) — 257.8K weekly downloads
- [react-sparklines](https://npm.io/package/react-sparklines.md) — 249.3K weekly downloads
- [react-native-gifted-charts](https://npm.io/package/react-native-gifted-charts.md) — 182.3K weekly downloads

## Recent versions

- 2.2.0 (latest) — 2022-12-10
- 2.0.0-rc.1 (next) — 2021-05-20
- 2.1.0 — 2022-08-03
- 2.0.0 — 2021-07-01
- 2.0.0-rc — 2021-05-16
- 1.0.0 — 2021-04-13
- 2.0.0-beta.1 — 2021-03-11
- 1.0.0-beta.1 — 2021-03-09
- 0.7.0 — 2019-09-08
- 0.6.0 — 2019-03-14
- 0.5.0 — 2018-12-11
- 0.4.0 — 2018-08-03
- 0.3.0 — 2018-03-21
- 0.2.0 — 2018-01-13
- 0.1.0 — 2017-09-10

## README

<p align="center">
  <img src="docs/.vuepress/public/hero-title.svg?sanitize=true">
</p>

<p align="center">
  <a href="https://chartjs-plugin-datalabels.netlify.app/guide/getting-started.html"><img src="https://img.shields.io/github/release/chartjs/chartjs-plugin-datalabels.svg?style=flat-square&maxAge=600" alt="Downloads"></a>
  <a href="https://travis-ci.org/chartjs/chartjs-plugin-datalabels"><img src="https://img.shields.io/travis/chartjs/chartjs-plugin-datalabels.svg?style=flat-square&maxAge=600" alt="Builds"></a>
  <a href="https://codeclimate.com/github/chartjs/chartjs-plugin-datalabels"><img src="https://img.shields.io/codeclimate/c/chartjs/chartjs-plugin-datalabels.svg?style=flat-square&maxAge=600" alt="Coverage"></a>
  <a href="https://github.com/chartjs/awesome"><img src="https://awesome.re/badge-flat2.svg" alt="Awesome"></a>
</p>

## Overview

Highly customizable [Chart.js](https://www.chartjs.org/) plugin that displays labels on data for any type of charts.

Requires [Chart.js](https://github.com/chartjs/Chart.js/releases) **3.x** or higher.

## Documentation

- [Introduction](https://chartjs-plugin-datalabels.netlify.app/guide/)
- [Getting Started](https://chartjs-plugin-datalabels.netlify.app/guide/getting-started.html)
- [Options](https://chartjs-plugin-datalabels.netlify.app/guide/options.html)
- [Labels](https://chartjs-plugin-datalabels.netlify.app/guide/labels.html)
- [Positioning](https://chartjs-plugin-datalabels.netlify.app/guide/positioning.html)
- [Formatting](https://chartjs-plugin-datalabels.netlify.app/guide/formatting.html)
- [Events](https://chartjs-plugin-datalabels.netlify.app/guide/events.html)
- [TypeScript](https://chartjs-plugin-datalabels.netlify.app/guide/typescript.html)
- [Migration](https://chartjs-plugin-datalabels.netlify.app/guide/migration.html)
- [Samples](https://chartjs-plugin-datalabels.netlify.app/samples/)

## Development

You first need to install node dependencies (requires [Node.js](https://nodejs.org/)):

```
> npm install
```

The following commands will then be available from the repository root:

```
> npm run build            // build dist files
> npm run build:dev        // build and watch for changes
> npm run test             // run all tests and generate code coverage
> npm run test:dev         // run all tests and watch for changes
> npm run lint             // perform code linting
> npm run lint -- --fix    // automatically fix linting problems
> npm run docs             // generate documentation (`dist/docs`)
> npm run docs:dev         // generate documentation and watch for changes
```

## License

`chartjs-plugin-datalabels` is available under the [MIT license](LICENSE.md).

---
_Source: https://npm.io/package/chartjs-plugin-datalabels · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
