-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added local assets, rather than using remote urls.
- Loading branch information
Showing
803 changed files
with
159,642 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"name": "chart.js", | ||
"description": "Simple HTML5 charts using the canvas element.", | ||
"homepage": "http://www.chartjs.org", | ||
"license": "MIT", | ||
"version": "2.7.2", | ||
"main": "./dist/Chart.js", | ||
"ignore": [ | ||
".github", | ||
".codeclimate.yml", | ||
".gitignore", | ||
".npmignore", | ||
".travis.yml", | ||
"scripts" | ||
], | ||
"_release": "2.7.2", | ||
"_resolution": { | ||
"type": "version", | ||
"tag": "v2.7.2", | ||
"commit": "33e81b45321e0211137f6434600b5435895b5a6f" | ||
}, | ||
"_source": "https://github.com/chartjs/Chart.js.git", | ||
"_target": "^2.7.2", | ||
"_originalSource": "chart.js", | ||
"_direct": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# http://editorconfig.org | ||
root = true | ||
|
||
[*] | ||
indent_style = tab | ||
indent_size = 4 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = false | ||
|
||
[gulpfile.js] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[*.yml] | ||
indent_style = space | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
**/*{.,-}min.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
extends: chartjs | ||
|
||
env: | ||
browser: true | ||
node: true | ||
|
||
plugins: ['html'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"indent-style": "tabs", | ||
"attr-quote-style": "double", | ||
"spec-char-escape": false, | ||
"attr-bans": [ | ||
"align", | ||
"background", | ||
"bgcolor", | ||
"border", | ||
"frameborder", | ||
"longdesc", | ||
"marginwidth", | ||
"marginheight", | ||
"scrolling" | ||
], | ||
"tag-bans": [ "b", "i" ], | ||
"id-class-style": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2018 Chart.js Contributors | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Maintaining | ||
## Release Process | ||
Chart.js relies on [Travis CI](https://travis-ci.org/) to automate the library [releases](https://github.com/chartjs/Chart.js/releases). | ||
|
||
### Releasing a New Version | ||
|
||
1. draft release notes on [GitHub](https://github.com/chartjs/Chart.js/releases/new) for the upcoming tag | ||
1. update `master` `package.json` version using [semver](http://semver.org/) semantic | ||
1. merge `master` into the `release` branch | ||
1. follow the build process on [Travis CI](https://travis-ci.org/chartjs/Chart.js) | ||
|
||
> **Note:** if `master` is merged in `release` with a `package.json` version that already exists, the tag | ||
creation fails and the release process is aborted. | ||
|
||
### Automated Tasks | ||
Merging into the `release` branch kicks off the automated release process: | ||
|
||
* build of the `dist/*.js` files | ||
* `bower.json` is generated from `package.json` | ||
* `dist/*.js` and `bower.json` are added to a detached branch | ||
* a tag is created from the `package.json` version | ||
* tag (with dist files) is pushed to GitHub | ||
|
||
Creation of this tag triggers a new build: | ||
|
||
* `Chart.js.zip` package is generated, containing dist files and examples | ||
* `dist/*.js` and `Chart.js.zip` are attached to the GitHub release (downloads) | ||
* a new npm package is published on [npmjs](https://www.npmjs.com/package/chart.js) | ||
|
||
Finally, [cdnjs](https://cdnjs.com/libraries/Chart.js) is automatically updated from the npm release. | ||
|
||
### Further Reading | ||
|
||
* [Travis GitHub releases](https://github.com/chartjs/Chart.js/pull/2555) | ||
* [Bower support and dist/* files](https://github.com/chartjs/Chart.js/issues/3033) | ||
* [cdnjs npm auto update](https://github.com/cdnjs/cdnjs/pull/8401) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# Chart.js | ||
|
||
[](https://travis-ci.org/chartjs/Chart.js) [](https://coveralls.io/github/chartjs/Chart.js?branch=master) [](https://codeclimate.com/github/chartjs/Chart.js) [](https://chartjs-slack.herokuapp.com/) | ||
|
||
*Simple HTML5 Charts using the canvas element* [chartjs.org](http://www.chartjs.org) | ||
|
||
## Installation | ||
|
||
You can download the latest version of Chart.js from the [GitHub releases](https://github.com/chartjs/Chart.js/releases/latest) or use a [Chart.js CDN](https://cdnjs.com/libraries/Chart.js). | ||
|
||
To install via npm: | ||
|
||
```bash | ||
npm install chart.js --save | ||
``` | ||
|
||
To install via bower: | ||
```bash | ||
bower install chart.js --save | ||
``` | ||
|
||
### Selecting the Correct Build | ||
|
||
Chart.js provides two different builds for you to choose: `Stand-Alone Build`, `Bundled Build`. | ||
|
||
#### Stand-Alone 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](http://momentjs.com/) before Chart.js for the functionality of the time axis. | ||
|
||
#### Bundled Build | ||
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 compatability issues. | ||
|
||
## Documentation | ||
|
||
You can find documentation at [www.chartjs.org/docs](http://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](http://www.chartjs.org/docs/latest/developers/#previous-versions). | ||
|
||
## Contributing | ||
|
||
Before submitting an issue or a pull request, please take a moment to look over the [contributing guidelines](https://github.com/chartjs/Chart.js/blob/master/docs/developers/contributing.md) first. For support using Chart.js, please post questions with the [`chartjs` tag on Stack Overflow](http://stackoverflow.com/questions/tagged/chartjs). | ||
|
||
## Building | ||
Instructions on building and testing Chart.js can be found in [the documentation](https://github.com/chartjs/Chart.js/blob/master/docs/developers/contributing.md#building-and-testing). | ||
|
||
## Thanks | ||
- [BrowserStack](https://browserstack.com) for allowing our team to test on thousands of browsers. | ||
- [@n8agrin](https://twitter.com/n8agrin) for the Twitter handle donation. | ||
|
||
## License | ||
|
||
Chart.js is available under the [MIT license](http://opensource.org/licenses/MIT). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"root": "./docs", | ||
"title": "Chart.js documentation", | ||
"author": "chartjs", | ||
"gitbook": "3.2.2", | ||
"plugins": ["-lunr", "-search", "search-plus", "anchorjs", "chartjs", "ga"], | ||
"pluginsConfig": { | ||
"anchorjs": { | ||
"icon": "#", | ||
"placement": "left", | ||
"visible": "always" | ||
}, | ||
"ga": { | ||
"token": "UA-28909194-3", | ||
"configuration": "auto" | ||
}, | ||
"theme-default": { | ||
"showLevel": false, | ||
"styles": { | ||
"website": "style.css" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"name": "chart.js", | ||
"description": "Simple HTML5 charts using the canvas element.", | ||
"homepage": "http://www.chartjs.org", | ||
"license": "MIT", | ||
"version": "2.7.2", | ||
"main": "./dist/Chart.js", | ||
"ignore": [ | ||
".github", | ||
".codeclimate.yml", | ||
".gitignore", | ||
".npmignore", | ||
".travis.yml", | ||
"scripts" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"name": "nnnick/chartjs", | ||
"type": "library", | ||
"description": "Simple HTML5 charts using the canvas element.", | ||
"keywords": [ | ||
"chart", | ||
"js" | ||
], | ||
"homepage": "http://www.chartjs.org/", | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "NICK DOWNIE", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"require": { | ||
"php": ">=5.3.3" | ||
}, | ||
"minimum-stability": "stable", | ||
"extra": { | ||
"branch-alias": { | ||
"release/2.0": "v2.0-dev" | ||
} | ||
} | ||
} |
Oops, something went wrong.