]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
resolves #9316 (#9317)
authorJacco van den Berg <39033624+LeeLenaleee@users.noreply.github.com>
Fri, 25 Jun 2021 12:07:11 +0000 (14:07 +0200)
committerGitHub <noreply@github.com>
Fri, 25 Jun 2021 12:07:11 +0000 (08:07 -0400)
docs/axes/index.md
types/index.esm.d.ts

index 88000388d080d6529a08a5acc6ec74f95e37fb34..b0d3a073586fadadc4d1899f0d8111f33dd3f11e 100644 (file)
@@ -157,8 +157,8 @@ Namespace: `options.scales[scaleId]`
 | `afterBuildTicks` | `axis` | Callback that runs after ticks are created. Useful for filtering ticks.
 | `beforeTickToLabelConversion` | `axis` | Callback that runs before ticks are converted into strings.
 | `afterTickToLabelConversion` | `axis` | Callback that runs after ticks are converted into strings.
-| `beforeCalculateTickRotation` | `axis` | Callback that runs before tick rotation is determined.
-| `afterCalculateTickRotation` | `axis` | Callback that runs after tick rotation is determined.
+| `beforeCalculateLabelRotation` | `axis` | Callback that runs before tick rotation is determined.
+| `afterCalculateLabelRotation` | `axis` | Callback that runs after tick rotation is determined.
 | `beforeFit` | `axis` | Callback that runs before the scale fits to the canvas.
 | `afterFit` | `axis` | Callback that runs after the scale fits to the canvas.
 | `afterUpdate` | `axis` | Callback that runs at the end of the update process.
index c7c00d88ce4417ef5eeabf5d98825a8b18baee4e..e5f474d947367c17d47d7059e4e3a50faee0d878 100644 (file)
@@ -1137,11 +1137,11 @@ export interface CoreScaleOptions {
   /**
    * Callback that runs before tick rotation is determined.
    */
-  beforeCalculateTickRotation(axis: Scale): void;
+  beforeCalculateLabelRotation(axis: Scale): void;
   /**
    * Callback that runs after tick rotation is determined.
    */
-  afterCalculateTickRotation(axis: Scale): void;
+  afterCalculateLabelRotation(axis: Scale): void;
   /**
    * Callback that runs before the scale fits to the canvas.
    */