mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 12:19:08 +02:00
Fix doc titles
This commit is contained in:
parent
cefaef4707
commit
f39fa53a7e
@ -3,7 +3,7 @@ title: Getting started
|
||||
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)
|
||||
|
||||
@ -18,7 +18,7 @@ bower install Chart.js --save
|
||||
|
||||
CDN: https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.0.0/Chart.js
|
||||
|
||||
###Install Chart.js
|
||||
### Install Chart.js
|
||||
|
||||
To import Chart.js using an old-school script tag:
|
||||
|
||||
@ -48,7 +48,7 @@ require(['path/to/Chartjs'], function(Chart){
|
||||
|
||||
```
|
||||
|
||||
###Creating a Chart
|
||||
### Creating a Chart
|
||||
|
||||
To create a chart, we need to instantiate the `Chart` class. To do this, we need to pass in the node, jQuery instance, or 2d context of the canvas of where we want to draw the chart. Here's an example.
|
||||
|
||||
@ -95,7 +95,7 @@ var myChart = new Chart(ctx, {
|
||||
|
||||
It's that easy to get started using Chart.js! From here you can explore the many options that can help you customise your charts with scales, tooltips, labels, colors, custom actions, and much more.
|
||||
|
||||
###Global chart configuration
|
||||
### Global chart configuration
|
||||
|
||||
This concept was introduced in Chart.js 1.0 to keep configuration DRY, and allow for changing options globally across chart types, avoiding the need to specify options for each instance, or the default for a particular chart type.
|
||||
|
||||
|
@ -136,7 +136,7 @@ Name | Type | Default | Description
|
||||
--- |:---:| --- | ---
|
||||
*ticks*.stepSize | Number | - | User defined fixed step size for the scale. If set, the scale ticks will be enumerated by multiple of stepSize, having one tick per increment. If not set, the ticks are labeled automatically using the nice numbers algorithm.
|
||||
|
||||
#### Logarithmic Scale
|
||||
### Logarithmic Scale
|
||||
The logarithmic scale is used to display logarithmic data of course. It can be placed on either the x or y axis.
|
||||
|
||||
The log scale extends the core scale class with the following tick template:
|
||||
|
@ -2,7 +2,7 @@
|
||||
title: Line Chart
|
||||
anchor: line-chart
|
||||
---
|
||||
###Introduction
|
||||
### Introduction
|
||||
A line chart is a way of plotting data points on a line.
|
||||
|
||||
Often, it is used to show trend data, and the comparison of two data sets.
|
||||
@ -11,7 +11,7 @@ Often, it is used to show trend data, and the comparison of two data sets.
|
||||
<canvas width="250" height="125"></canvas>
|
||||
</div>
|
||||
|
||||
###Example usage
|
||||
### Example usage
|
||||
```javascript
|
||||
var myLineChart = new Chart(ctx, {
|
||||
type: 'line',
|
||||
@ -27,7 +27,7 @@ var myLineChart = Chart.Line(ctx, {
|
||||
options: options
|
||||
});
|
||||
```
|
||||
###Data structure
|
||||
### Data structure
|
||||
|
||||
```javascript
|
||||
var data = {
|
||||
|
@ -2,7 +2,7 @@
|
||||
title: Pie & Doughnut Charts
|
||||
anchor: doughnut-pie-chart
|
||||
---
|
||||
###Introduction
|
||||
### Introduction
|
||||
Pie and doughnut charts are probably the most commonly used chart there are. They are divided into segments, the arc of each segment shows the proportional value of each piece of data.
|
||||
|
||||
They are excellent at showing the relational proportions between data.
|
||||
|
Loading…
Reference in New Issue
Block a user