Skip to content

Commit 48efa70

Browse files
committed
add style customization to hoverlabel
1 parent 4862f62 commit 48efa70

9 files changed

Lines changed: 2533 additions & 126 deletions

File tree

‎src/components/fx/attributes.js‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,24 @@ module.exports = {
1414
arrayOk: true,
1515
description: 'Sets the border color of the hover labels for this trace.'
1616
}),
17+
borderwidth: extendFlat({}, hoverLabelAttrs.borderwidth, {
18+
description: 'Sets the border width (in px) of the hover labels for this trace.'
19+
}),
20+
borderradius: extendFlat({}, hoverLabelAttrs.borderradius, {
21+
description: 'Sets the border radius (in px) of the hover labels for this trace.'
22+
}),
23+
borderpad: extendFlat({}, hoverLabelAttrs.borderpad, {
24+
description: 'Sets the padding (in px) between the text and the border of the hover labels for this trace.'
25+
}),
26+
namecolor: extendFlat({}, hoverLabelAttrs.namecolor, {
27+
description: 'Sets the text color of the secondary hover label for this trace.'
28+
}),
29+
bgnamecolor: extendFlat({}, hoverLabelAttrs.bgnamecolor, {
30+
description: 'Sets the background color of the secondary hover label for this trace.'
31+
}),
32+
shadow: extendFlat({}, hoverLabelAttrs.shadow, {
33+
description: 'Sets the shadow of the hover labels for this trace.'
34+
}),
1735
font: fontAttrs({
1836
arrayOk: true,
1937
editType: 'none',

0 commit comments

Comments
 (0)