mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
Fix scale typos
This commit is contained in:
parent
451a9a4515
commit
81aedf4df0
@ -151,7 +151,7 @@ suggestedMin | Number | - | User defined minimum number for the scale, overrides
|
||||
The following example creates a line chart with a vertical axis that goes from 0 to 5 in 0.5 sized steps.
|
||||
|
||||
```javascript
|
||||
var chartInstance = new Chart({
|
||||
var chartInstance = new Chart(ctx, {
|
||||
type: 'line',
|
||||
data: data,
|
||||
options: {
|
||||
@ -186,7 +186,7 @@ max | Number | - | User defined maximum number for the scale, overrides maximum
|
||||
The following example creates a chart with a logarithmic X axis that ranges from 1 to 1000.
|
||||
|
||||
```javascript
|
||||
var chartInstance = new Chart({
|
||||
var chartInstance = new Chart(ctx, {
|
||||
type: 'line',
|
||||
data: data,
|
||||
options: {
|
||||
@ -245,7 +245,7 @@ year | 'YYYY'
|
||||
For example, to set the display format for the 'quarter' unit to show the month and year, the following config would be passed to the chart constructor.
|
||||
|
||||
```javascript
|
||||
var chartInstance = new Chart({
|
||||
var chartInstance = new Chart(ctx, {
|
||||
type: 'line',
|
||||
data: data,
|
||||
options: {
|
||||
@ -280,7 +280,7 @@ The following time measurements are supported. The names can be passed as string
|
||||
For example, to create a chart with a time scale that always displayed units per month, the following config could be used.
|
||||
|
||||
```javascript
|
||||
var chartInstance = new Chart({
|
||||
var chartInstance = new Chart(ctx, {
|
||||
type: 'line',
|
||||
data: data,
|
||||
options: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user