mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
Minor doc fixes
This commit is contained in:
parent
37da19df78
commit
0b56ea452f
@ -5,7 +5,10 @@ anchor: getting-started
|
|||||||
|
|
||||||
### Download Chart.js
|
### Download Chart.js
|
||||||
|
|
||||||
To download a zip, go to the [Chart.js on Github](https://github.com/nnnick/Chart.js)
|
To download a zip, go to [Chart.js on Github](https://github.com/nnnick/Chart.js) and choose the version that is right for your application.
|
||||||
|
* [Standard build](https://raw.githubusercontent.com/nnnick/Chart.js/v2.0-dev/dist/Chart.js) (~31kB gzipped)
|
||||||
|
* [Bundled with Moment.js](https://raw.githubusercontent.com/nnnick/Chart.js/v2.0-dev/dist/Chart.bundle.js) (~45kB gzipped)
|
||||||
|
* [CDN Versions](https://cdnjs.com/libraries/Chart.js)
|
||||||
|
|
||||||
To install via npm / bower:
|
To install via npm / bower:
|
||||||
|
|
||||||
@ -16,9 +19,7 @@ npm install chart.js --save
|
|||||||
bower install Chart.js --save
|
bower install Chart.js --save
|
||||||
```
|
```
|
||||||
|
|
||||||
CDN: https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.0.0/Chart.js
|
### Installation
|
||||||
|
|
||||||
### Install Chart.js
|
|
||||||
|
|
||||||
To import Chart.js using an old-school script tag:
|
To import Chart.js using an old-school script tag:
|
||||||
|
|
||||||
@ -34,11 +35,11 @@ To import Chart.js using an awesome module loader:
|
|||||||
```javascript
|
```javascript
|
||||||
|
|
||||||
// Using CommonJS
|
// Using CommonJS
|
||||||
var Chart = require('chart.js')
|
var Chart = require('src/chart.js')
|
||||||
var myChart = new Chart({...})
|
var myChart = new Chart({...})
|
||||||
|
|
||||||
// ES6
|
// ES6
|
||||||
import Chart from 'chart.js'
|
import Chart from 'src/chart.js'
|
||||||
let myChart = new Chart({...})
|
let myChart = new Chart({...})
|
||||||
|
|
||||||
// Using requirejs
|
// Using requirejs
|
||||||
|
|||||||
@ -96,4 +96,4 @@ new Chart(ctx,{
|
|||||||
// and the Doughnut chart defaults but this particular instance will have `animateScale` set to `true`.
|
// and the Doughnut chart defaults but this particular instance will have `animateScale` set to `true`.
|
||||||
```
|
```
|
||||||
|
|
||||||
We can also change these default values for each Doughnut type that is created, this object is available at `Chart.defaults.Doughnut`. Pie charts also have a clone of these defaults available to change at `Chart.defaults.Pie`, with the only difference being `percentageInnerCutout` being set to 0.
|
We can also change these default values for each Doughnut type that is created, this object is available at `Chart.defaults.doughnut`. Pie charts also have a clone of these defaults available to change at `Chart.defaults.pie`, with the only difference being `percentageInnerCutout` being set to 0.
|
||||||
Loading…
x
Reference in New Issue
Block a user