Simple HTML5 Charts using the canvas element chartjs.org
You can download the latest version of Chart.js from the GitHub releases or use a Chart.js CDN.
To install via npm:
npm install chart.js --save
To install via bower:
bower install chart.js --save
Chart.js provides two different builds for you to choose: Stand-Alone Build
, Bundled Build
.
Files:
dist/Chart.js
dist/Chart.min.js
The stand-alone build includes Chart.js as well as the color parsing library. If this version is used, you are required to include Moment.js before Chart.js for the functionality of the time axis.
Files:
dist/Chart.bundle.js
dist/Chart.bundle.min.js
The bundled build includes Moment.js in a single file. You should use this version if you require time axes and want to include a single file. You should not use this build if your application already included Moment.js. Otherwise, Moment.js will be included twice which results in increasing page load time and possible version compatibility issues. The Moment.js version in the bundled build is private to Chart.js so if you want to use Moment.js yourself, it's better to use Chart.js (non bundled) and import Moment.js manually.
You can find documentation at www.chartjs.org/docs. The markdown files that build the site are available under /docs
. Previous version documentation is available at www.chartjs.org/docs/latest/developers/#previous-versions.
Before submitting an issue or a pull request, please take a moment to look over the contributing guidelines first. For support using Chart.js, please post questions with the chartjs
tag on Stack Overflow.
Instructions on building and testing Chart.js can be found in the documentation.
Chart.js is available under the MIT license.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。