mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
Update defaults and types for tick stroke (#8195)
This commit is contained in:
parent
92646a973d
commit
b2d5a5fa97
@ -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,
|
||||
|
||||
10
types/scales/index.d.ts
vendored
10
types/scales/index.d.ts
vendored
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user