mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
Updated build and documentation
This commit is contained in:
parent
e9c18f603d
commit
55f9b68b0c
1
Chart.js
vendored
1
Chart.js
vendored
@ -5765,7 +5765,6 @@
|
|||||||
var niceMin = Math.floor(this.min / spacing) * spacing;
|
var niceMin = Math.floor(this.min / spacing) * spacing;
|
||||||
var niceMax = Math.ceil(this.max / spacing) * spacing;
|
var niceMax = Math.ceil(this.max / spacing) * spacing;
|
||||||
var numSpaces = (niceMax - niceMin) / spacing;
|
var numSpaces = (niceMax - niceMin) / spacing;
|
||||||
console.log(this.min, this.max, niceMin, niceMax, numSpaces, spacing);
|
|
||||||
|
|
||||||
// If very close to our rounded value, use it.
|
// If very close to our rounded value, use it.
|
||||||
if (helpers.almostEquals(numSpaces, Math.round(numSpaces), spacing / 1000)) {
|
if (helpers.almostEquals(numSpaces, Math.round(numSpaces), spacing / 1000)) {
|
||||||
|
|||||||
2
Chart.min.js
vendored
2
Chart.min.js
vendored
File diff suppressed because one or more lines are too long
@ -134,7 +134,7 @@ It also provides additional configuration options:
|
|||||||
|
|
||||||
Name | Type | Default | Description
|
Name | Type | Default | Description
|
||||||
--- |:---:| --- | ---
|
--- |:---:| --- | ---
|
||||||
*ticks*.fixedStepSize | Number | - | User defined fixed step size for the scale. If set, the scale ticks will be enumerated by multiple of fixedStepSize, having one tick per increment. If not set, the ticks are labeled automatically using the nice numbers algorithm. Works well with suggestedMin and suggestedMax.
|
*ticks*.fixedStepSize | Number | - | User defined fixed step size for the scale. If set, the scale ticks will be enumerated by multiple of fixedStepSize, 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 logarithmic scale is used to display logarithmic data of course. It can be placed on either the x or y axis.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user