diff --git a/src/core/core.scale.js b/src/core/core.scale.js index 2b4e4f235..f207ef541 100644 --- a/src/core/core.scale.js +++ b/src/core/core.scale.js @@ -59,8 +59,8 @@ defaults.set('scale', { minRotation: 0, maxRotation: 50, mirror: false, - lineWidth: 0, - strokeStyle: '', + textStrokeWidth: 0, + textStrokeColor: '', padding: 0, display: true, autoSkip: true, diff --git a/types/scales/index.d.ts b/types/scales/index.d.ts index 275c31b44..e22047044 100644 --- a/types/scales/index.d.ts +++ b/types/scales/index.d.ts @@ -69,6 +69,16 @@ export interface TickOptions { * Sets the offset of the tick labels from the axis */ padding: number; + /** + * The color of the stroke around the text. + * @default undefined + */ + textStrokeColor: Color; + /** + * Stroke width around the text. + * @default 0 + */ + textStrokeWidth: number; /** * z-index of tick layer. Useful when ticks are drawn on chart area. Values <= 0 are drawn under datasets, > 0 on top. * @default 0