chartjs显示数值标签插件:chartjs-plugin-datalabels

 

Getting Started

#Installation

#npm

 

npm install chartjs-plugin-datalabels --save

This plugin can also be installed using Bower.

#CDN

 

By default, https://cdn.jsdelivr.net/npm/chartjs-plugin-datalabels 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/[email protected]    // exact version
https://cdn.jsdelivr.net/npm/chartjs-plugin-datalabels@1        // latest 1.x.x

Read more about jsDeliver versioning on their website.

#Download

 

You can download the latest version of chartjs-plugin-datalabels from the GitHub releases:

  • chartjs-plugin-datalabels.js (recommended for development)
  • chartjs-plugin-datalabels.min.js (recommended for production)
  • chartjs-plugin-datalabels.zip (contains .js and .min.js versions + samples)

#Integration

#HTML


                    
                    

你可能感兴趣的:(chartjs显示数值标签插件:chartjs-plugin-datalabels)