fix: pass timestamp to ticks callback (#10540)

* fix: pass timestamp to ticks callback
* docs: edit labelling page
* docs: additions to the migration guide
This commit is contained in:
Dan Onoshko
2022-08-05 18:59:36 +07:00
committed by GitHub
parent ce375a6876
commit b19fc0169f
4 changed files with 50 additions and 12 deletions

View File

@@ -22,7 +22,7 @@ To do this, you need to override the `ticks.callback` method in the axis configu
The method receives 3 arguments:
* `value` - the tick value in the **internal data format** of the associated scale.
* `value` - the tick value in the **internal data format** of the associated scale. For time scale, it is a timestamp.
* `index` - the tick index in the ticks array.
* `ticks` - the array containing all of the [tick objects](../api/interfaces/Tick).

View File

@@ -11,6 +11,7 @@ A number of changes were made to the configuration options passed to the `Chart`
#### Specific changes
* The radialLinear grid indexable and scriptable options don't decrease the index of the specified grid line anymore.
* Ticks callback on time scale now receives timestamp instead of a formatted label.
#### Type changes
* The order of the `ChartMeta` parameters have been changed from `<Element, DatasetElement, Type>` to `<Type, Element, DatasetElement>`