Skip to content

Latest commit

 

History

History
30 lines (17 loc) · 1.04 KB

File metadata and controls

30 lines (17 loc) · 1.04 KB

Getting Started

:::danger

This plugin needs to be registered. It does not function as inline plugin.

:::

An annotation plugin for Chart.js >= 3.7.0

This plugin draws lines, boxes, labels, points, polygons and ellipses on the chart area. Annotations work with line, bar, scatter and bubble charts that use linear, logarithmic, time, or category scales.

Furthermore you can use a doughnut label annotation which can be used to add contents (text, image, canvas) in the middle area of the doughnut charts.

Annotations will not work on any chart that does not have exactly two axes, including pie, radar, and polar area charts.

Banner

Installation

> npm install chartjs-plugin-annotation

::: tip Important Note

For Chart.js 2.4.0 to 2.9.x support, use version 0.5.7 of this plugin Documentation for v0.5.7 can be found on GitHub.

:::