-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
full default contents of hoverlabel not appearing in _fullData or _fullLayout #2964
Comments
In general, we can't just punch the "computed" hoverlabel colors during the defaults (and hence in |
I'm not sure I understand the implications of what you're saying here... why "just"? what would be the alternative? :) |
Ooops. I meant to write: we can't just punch the "computed" hoverlabel colors during the defaults (now edited above).
Probably mutate |
Split into #2834 (comment) and #2981 Closing. |
If I just create any random figure without specifying anything to do with
hoverlabel
and look at_fullData[0].hoverlabel
or_fullLayout.hoverlabel
, I seefont.family
,font.size
andnamelength
but none of the default values for the color keys likebgcolor
orbordercolor
orfont.color
. This makes it hard to add these fields to thereact-chart-editor
.I expect that the colours for the
_fullLayout
variant should benull
by default, which would mean "delegate to the individual traces" right? That'll be hard to manage in the editor but we'll find a way :)While testing this I also found some cases where the hoverlabel text doesn't automatically contrast with the
bgcolor
in a sufficient way ... settinglayout.hoverlabel.bgcolor = "white"
gives this, where issue 1 is that the bottom overlabel doesn't have black text and issue 2 is that the trace-name portion of the label doesn't have black text. Settinglayout.hoverlabel.font.color = "black"
only corrects issue 1.The text was updated successfully, but these errors were encountered: