Chart.js

Build Status Code Climate Coverage Status

Chart.js on Slack

Simple HTML5 Charts using the canvas element chartjs.org

Installation

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

Selecting the Correct Build

Chart.js provides two different builds that are available for your use. The Chart.js and Chart.min.js files include Chart.js and the accompanying color parsing library. If this version is used and you require the use of the time axis, Moment.js will need to be included before Chart.js.

The Chart.bundle.js and Chart.bundle.min.js builds include Moment.js in a single file. This version should be used if you require time axes and want a single file to include, select this version. Do not use this build if your application already includes Moment.js. If you do, Moment.js will be included twice, increasing the page load time and potentially introducing version issues.

Documentation

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/#notes-previous-versions.

Contributing

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.

Building

Instructions on building and testing Chart.js can be found in the documentation.

Thanks

  • BrowserStack for allowing our team to test on thousands of browsers.
  • @n8agrin for the Twitter handle donation.

License

Chart.js is available under the MIT license.



Chart.js

建立状态 代码气候

chart.js之上Slackdata-canonical-src

使用canvas元素的简单HTML5图表 chartjs.org

安装

您可以从 GitHub发行版下载最新版本的Chart.js,或使用 Chart.js CDN

要通过npm进行安装:

npm install chart.js –save

要通过bower安装:

bower install chart.js –save

Selecting the Correct Build

Chart.js提供了两种可供您使用的不同构建。 Chart.js 和 Chart.min.js 文件包含Chart.js和附带的颜色解析库。如果使用此版本,并且需要使用时间轴,则需要在Chart.js之前包含 Moment.js

Chart.bundle.js 和 Chart.bundle.min.js 构建在一个文件中包含Moment.js。如果您需要时间轴并希望包含单个文件,则应使用此版本,选择此版本。如果您的应用程序已经包含Moment.js,请不要使用此构建。如果您这样做,Moment.js将被包含两次,从而增加页面加载时间,并可能引入版本问题。

文件

您可以在 www.chartjs.org/docs 找到文档。构建站点的markdown文件可在 / docs 下找到。以前版本的文档可以在 www.chartjs.org/docs/#notes-previous-versions 获得。

贡献

在提交问题或提出请求之前,请花点时间查看提供的指导第一。对于使用Chart.js的支持,请使用Stack Overflow上的 chartjs 标签发布问题。 / p>

建设

有关构建和测试Chart.js的说明,请参见文档

谢谢

许可证

Chart.js可在麻省理工学院许可证下获得。




相关问题推荐