Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions draftlogs/8115_add.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Add `hoverlabel.borderwidth`, `hoverlabel.borderradius`, `hoverlabel.borderpad`, `hoverlabel.namecolor`, `hoverlabel.bgnamecolor`, and `hoverlabel.shadow` styling options [[#8115](https://github.com/plotly/plotly.js/pull/8115)]
Comment thread
Lexachoc marked this conversation as resolved.
Resolved
18 changes: 18 additions & 0 deletions src/components/fx/attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,24 @@ module.exports = {
arrayOk: true,
description: 'Sets the border color of the hover labels for this trace.'
}),
borderwidth: extendFlat({}, hoverLabelAttrs.borderwidth, {
description: 'Sets the border width (in px) of the hover labels for this trace.'
}),
borderradius: extendFlat({}, hoverLabelAttrs.borderradius, {
description: 'Sets the border radius (in px) of the hover labels for this trace.'
}),
borderpad: extendFlat({}, hoverLabelAttrs.borderpad, {
description: 'Sets the padding (in px) between the text and the border of the hover labels for this trace.'
}),
namecolor: extendFlat({}, hoverLabelAttrs.namecolor, {
description: 'Sets the text color of the secondary hover label for this trace.'
}),
bgnamecolor: extendFlat({}, hoverLabelAttrs.bgnamecolor, {
description: 'Sets the background color of the secondary hover label for this trace.'
}),
shadow: extendFlat({}, hoverLabelAttrs.shadow, {
description: 'Sets the shadow of the hover labels for this trace.'
}),
Comment on lines +17 to +34

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other attributes support arrayOk for per-point array values, but these ones are excluded. Is that intentional? What do you think about supporting arrays here?

font: fontAttrs({
arrayOk: true,
editType: 'none',
Expand Down
Loading
Loading