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:
Evert Timberg
2021-03-13 17:37:43 -05:00
committed by GitHub
parent 96f6b42c57
commit d84db2cefc
7 changed files with 94 additions and 24 deletions

20
types/index.esm.d.ts vendored
View File

@@ -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