mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-05 16:04:03 +01:00
Radial scale point label backdrop color (#8633)
* Radial scale point label backdrop color * Update default tests * backdropPadding is a single setting * Up the tolerance a bit * Update tick backdrop padding options
This commit is contained in:
20
types/index.esm.d.ts
vendored
20
types/index.esm.d.ts
vendored
@@ -3005,6 +3005,17 @@ export type RadialLinearScaleOptions = CoreScaleOptions & {
|
||||
max: number;
|
||||
|
||||
pointLabels: {
|
||||
/**
|
||||
* Background color of the point label.
|
||||
* @default undefined
|
||||
*/
|
||||
backdropColor: Scriptable<Color, ScriptableScaleContext>;
|
||||
/**
|
||||
* Padding of label backdrop.
|
||||
* @default 2
|
||||
*/
|
||||
backdropPadding: Scriptable<number | ChartArea, ScriptableScaleContext>;
|
||||
|
||||
/**
|
||||
* if true, point labels are shown.
|
||||
* @default true
|
||||
@@ -3043,15 +3054,10 @@ export type RadialLinearScaleOptions = CoreScaleOptions & {
|
||||
*/
|
||||
backdropColor: Scriptable<Color, ScriptableScaleContext>;
|
||||
/**
|
||||
* Horizontal padding of label backdrop.
|
||||
* Padding of label backdrop.
|
||||
* @default 2
|
||||
*/
|
||||
backdropPaddingX: number;
|
||||
/**
|
||||
* Vertical padding of label backdrop.
|
||||
* @default 2
|
||||
*/
|
||||
backdropPaddingY: number;
|
||||
backdropPadding: number | ChartArea;
|
||||
|
||||
/**
|
||||
* The Intl.NumberFormat options used by the default label formatter
|
||||
|
||||
Reference in New Issue
Block a user