Skip to content

Commit 1025af8

Browse files
committed
Revert changes to installation docs
1 parent 4360e0e commit 1025af8

File tree

1 file changed

+23
-30
lines changed

1 file changed

+23
-30
lines changed

docs/getting-started/installation.md

Lines changed: 23 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11
# Installation
2-
3-
## Package Manager
4-
52
Chart.js can be installed via npm or bower. It is recommended to get Chart.js this way.
63

7-
### npm
4+
## npm
85
[![npm](https://img.shields.io/npm/v/chart.js.svg?style=flat-square&maxAge=600)](https://npmjs.com/package/chart.js)
96
[![npm](https://img.shields.io/npm/dm/chart.js.svg?style=flat-square&maxAge=600)](https://npmjs.com/package/chart.js)
107

118
```bash
129
npm install chart.js --save
1310
```
1411

15-
### Bower
12+
## Bower
1613
[![bower](https://img.shields.io/bower/v/chartjs.svg?style=flat-square&maxAge=600)](https://libraries.io/bower/chartjs)
1714

1815
```bash
@@ -21,45 +18,41 @@ bower install chart.js --save
2118

2219
## CDN
2320

24-
### Selecting the Correct Build
25-
26-
Chart.js provides two different builds for you to choose: **Stand-Alone Build**, **Bundled Build**.
27-
28-
#### Stand-Alone Build
29-
Files:
30-
* `dist/Chart.js`
31-
* `dist/Chart.min.js`
32-
33-
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.
34-
35-
#### Bundled Build
36-
Files:
37-
* `dist/Chart.bundle.js`
38-
* `dist/Chart.bundle.min.js`
39-
40-
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.
41-
42-
### CDNs
43-
44-
Chart.js is available on the following CDNs
45-
46-
#### CDNJS
21+
### CDNJS
4722
[![cdnjs](https://img.shields.io/cdnjs/v/Chart.js.svg?style=flat-square&maxAge=600)](https://cdnjs.com/libraries/Chart.js)
4823

4924
Chart.js built files are available on [CDNJS](https://cdnjs.com/):
5025

5126
https://cdnjs.com/libraries/Chart.js
5227

53-
#### jsDelivr
28+
### jsDelivr
5429
[![jsdelivr](https://img.shields.io/npm/v/chart.js.svg?label=jsdelivr&style=flat-square&maxAge=600)](https://cdn.jsdelivr.net/npm/chart.js@latest/dist/) [![jsdelivr hits](https://data.jsdelivr.com/v1/package/npm/chart.js/badge)](https://www.jsdelivr.com/package/npm/chart.js)
5530

5631
Chart.js built files are also available through [jsDelivr](https://www.jsdelivr.com/):
5732

5833
https://www.jsdelivr.com/package/npm/chart.js?path=dist
5934

60-
#### Github
35+
## Github
6136
[![github](https://img.shields.io/github/release/chartjs/Chart.js.svg?style=flat-square&maxAge=600)](https://github.com/chartjs/Chart.js/releases/latest)
6237

6338
You can download the latest version of [Chart.js on GitHub](https://github.com/chartjs/Chart.js/releases/latest).
6439

6540
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.
41+
42+
## Selecting the Correct Build
43+
44+
Chart.js provides two different builds for you to choose: **Stand-Alone Build**, **Bundled Build**.
45+
46+
### Stand-Alone Build
47+
Files:
48+
* `dist/Chart.js`
49+
* `dist/Chart.min.js`
50+
51+
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.
52+
53+
### Bundled Build
54+
Files:
55+
* `dist/Chart.bundle.js`
56+
* `dist/Chart.bundle.min.js`
57+
58+
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.

0 commit comments

Comments
 (0)