mirror of
https://github.com/aykhans/AzSuicideDataVisualization.git
synced 2025-07-01 22:13:01 +00:00
first commit
This commit is contained in:
@ -0,0 +1,51 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator):
|
||||
def __init__(self, plotly_name="hoverlabel", parent_name="barpolar", **kwargs):
|
||||
super(HoverlabelValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
data_class_str=kwargs.pop("data_class_str", "Hoverlabel"),
|
||||
data_docs=kwargs.pop(
|
||||
"data_docs",
|
||||
"""
|
||||
align
|
||||
Sets the horizontal alignment of the text
|
||||
content within hover label box. Has an effect
|
||||
only if the hover label text spans more two or
|
||||
more lines
|
||||
alignsrc
|
||||
Sets the source reference on Chart Studio Cloud
|
||||
for `align`.
|
||||
bgcolor
|
||||
Sets the background color of the hover labels
|
||||
for this trace
|
||||
bgcolorsrc
|
||||
Sets the source reference on Chart Studio Cloud
|
||||
for `bgcolor`.
|
||||
bordercolor
|
||||
Sets the border color of the hover labels for
|
||||
this trace.
|
||||
bordercolorsrc
|
||||
Sets the source reference on Chart Studio Cloud
|
||||
for `bordercolor`.
|
||||
font
|
||||
Sets the font used in hover labels.
|
||||
namelength
|
||||
Sets the default length (in number of
|
||||
characters) of the trace name in the hover
|
||||
labels for all traces. -1 shows the whole name
|
||||
regardless of length. 0-3 shows the first 0-3
|
||||
characters, and an integer >3 will show the
|
||||
whole name if it is less than that many
|
||||
characters, but if it is longer, will truncate
|
||||
to `namelength - 3` characters and add an
|
||||
ellipsis.
|
||||
namelengthsrc
|
||||
Sets the source reference on Chart Studio Cloud
|
||||
for `namelength`.
|
||||
""",
|
||||
),
|
||||
**kwargs,
|
||||
)
|
Reference in New Issue
Block a user