diff --git a/draftlogs/6875_change.md b/draftlogs/6875_change.md new file mode 100644 index 00000000000..37c2fd5cb07 --- /dev/null +++ b/draftlogs/6875_change.md @@ -0,0 +1 @@ +- Unified hover: use `legend.tracegroupgap` in mock legend instead of setting a hardcoded value [[#6864](https://github.com/plotly/plotly.js/pull/6864)] \ No newline at end of file diff --git a/src/components/fx/hover.js b/src/components/fx/hover.js index 59642856e86..6793daca348 100644 --- a/src/components/fx/hover.js +++ b/src/components/fx/hover.js @@ -1139,7 +1139,7 @@ function createHoverText(hoverData, opts) { bgcolor: hoverlabel.bgcolor, bordercolor: hoverlabel.bordercolor, borderwidth: 1, - tracegroupgap: 7, + tracegroupgap: fullLayout.legend ? fullLayout.legend.tracegroupgap : undefined, traceorder: fullLayout.legend ? fullLayout.legend.traceorder : undefined, orientation: 'v' } pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy