-
Notifications
You must be signed in to change notification settings - Fork 12k
Fix duplicate anchor #6038
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Fix duplicate anchor #6038
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next
Next commit
Fix broken documentation anchors
- Loading branch information
commit 4360e0e966b54a42a30f1ad9434ffbed9be9d5f9
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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 |
|---|---|---|
| @@ -1,57 +1,65 @@ | ||
| # Installation | ||
|
|
||
| ## Package Manager | ||
|
|
||
| Chart.js can be installed via npm or bower. It is recommended to get Chart.js this way. | ||
|
|
||
| ## npm | ||
| ### npm | ||
| [](https://npmjs.com/package/chart.js) | ||
| [](https://npmjs.com/package/chart.js) | ||
|
|
||
| ```bash | ||
| npm install chart.js --save | ||
| ``` | ||
|
|
||
| ## Bower | ||
| ### Bower | ||
| [](https://libraries.io/bower/chartjs) | ||
|
|
||
| ```bash | ||
| bower install chart.js --save | ||
| ``` | ||
|
|
||
| ## CDN | ||
| ### CDNJS | ||
|
|
||
| ### 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](https://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 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. | ||
|
|
||
| ### CDNs | ||
|
|
||
| Chart.js is available on the following CDNs | ||
|
|
||
| #### CDNJS | ||
| [](https://cdnjs.com/libraries/Chart.js) | ||
|
|
||
| Chart.js built files are available on [CDNJS](https://cdnjs.com/): | ||
|
|
||
| https://cdnjs.com/libraries/Chart.js | ||
|
|
||
| ### jsDelivr | ||
| #### jsDelivr | ||
| [](https://cdn.jsdelivr.net/npm/chart.js@latest/dist/) [](https://www.jsdelivr.com/package/npm/chart.js) | ||
|
|
||
| Chart.js built files are also available through [jsDelivr](https://www.jsdelivr.com/): | ||
|
|
||
| https://www.jsdelivr.com/package/npm/chart.js?path=dist | ||
|
|
||
| ## Github | ||
| #### Github | ||
| [](https://github.com/chartjs/Chart.js/releases/latest) | ||
|
|
||
| You can download the latest version of [Chart.js on GitHub](https://github.com/chartjs/Chart.js/releases/latest). | ||
|
|
||
| If you download or clone the repository, you must [build](../developers/contributing.md#building-and-testing) Chart.js to generate the dist files. Chart.js no longer comes with prebuilt release versions, so an alternative option to downloading the repo is **strongly** advised. | ||
|
|
||
| # 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](https://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 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. | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.