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,49 @@
|
||||
import sys
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
if sys.version_info < (3, 7) or TYPE_CHECKING:
|
||||
from ._ysrc import YsrcValidator
|
||||
from ._y import YValidator
|
||||
from ._xsrc import XsrcValidator
|
||||
from ._x import XValidator
|
||||
from ._thickness import ThicknessValidator
|
||||
from ._pad import PadValidator
|
||||
from ._line import LineValidator
|
||||
from ._labelsrc import LabelsrcValidator
|
||||
from ._label import LabelValidator
|
||||
from ._hovertemplatesrc import HovertemplatesrcValidator
|
||||
from ._hovertemplate import HovertemplateValidator
|
||||
from ._hoverlabel import HoverlabelValidator
|
||||
from ._hoverinfo import HoverinfoValidator
|
||||
from ._groups import GroupsValidator
|
||||
from ._customdatasrc import CustomdatasrcValidator
|
||||
from ._customdata import CustomdataValidator
|
||||
from ._colorsrc import ColorsrcValidator
|
||||
from ._color import ColorValidator
|
||||
else:
|
||||
from _plotly_utils.importers import relative_import
|
||||
|
||||
__all__, __getattr__, __dir__ = relative_import(
|
||||
__name__,
|
||||
[],
|
||||
[
|
||||
"._ysrc.YsrcValidator",
|
||||
"._y.YValidator",
|
||||
"._xsrc.XsrcValidator",
|
||||
"._x.XValidator",
|
||||
"._thickness.ThicknessValidator",
|
||||
"._pad.PadValidator",
|
||||
"._line.LineValidator",
|
||||
"._labelsrc.LabelsrcValidator",
|
||||
"._label.LabelValidator",
|
||||
"._hovertemplatesrc.HovertemplatesrcValidator",
|
||||
"._hovertemplate.HovertemplateValidator",
|
||||
"._hoverlabel.HoverlabelValidator",
|
||||
"._hoverinfo.HoverinfoValidator",
|
||||
"._groups.GroupsValidator",
|
||||
"._customdatasrc.CustomdatasrcValidator",
|
||||
"._customdata.CustomdataValidator",
|
||||
"._colorsrc.ColorsrcValidator",
|
||||
"._color.ColorValidator",
|
||||
],
|
||||
)
|
@ -0,0 +1,12 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class ColorValidator(_plotly_utils.basevalidators.ColorValidator):
|
||||
def __init__(self, plotly_name="color", parent_name="sankey.node", **kwargs):
|
||||
super(ColorValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
array_ok=kwargs.pop("array_ok", True),
|
||||
edit_type=kwargs.pop("edit_type", "calc"),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,11 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator):
|
||||
def __init__(self, plotly_name="colorsrc", parent_name="sankey.node", **kwargs):
|
||||
super(ColorsrcValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
edit_type=kwargs.pop("edit_type", "none"),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,11 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator):
|
||||
def __init__(self, plotly_name="customdata", parent_name="sankey.node", **kwargs):
|
||||
super(CustomdataValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
edit_type=kwargs.pop("edit_type", "calc"),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,13 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator):
|
||||
def __init__(
|
||||
self, plotly_name="customdatasrc", parent_name="sankey.node", **kwargs
|
||||
):
|
||||
super(CustomdatasrcValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
edit_type=kwargs.pop("edit_type", "none"),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,15 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class GroupsValidator(_plotly_utils.basevalidators.InfoArrayValidator):
|
||||
def __init__(self, plotly_name="groups", parent_name="sankey.node", **kwargs):
|
||||
super(GroupsValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
dimensions=kwargs.pop("dimensions", 2),
|
||||
edit_type=kwargs.pop("edit_type", "calc"),
|
||||
free_length=kwargs.pop("free_length", True),
|
||||
implied_edits=kwargs.pop("implied_edits", {"x": [], "y": []}),
|
||||
items=kwargs.pop("items", {"editType": "calc", "valType": "number"}),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,12 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class HoverinfoValidator(_plotly_utils.basevalidators.EnumeratedValidator):
|
||||
def __init__(self, plotly_name="hoverinfo", parent_name="sankey.node", **kwargs):
|
||||
super(HoverinfoValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
edit_type=kwargs.pop("edit_type", "calc"),
|
||||
values=kwargs.pop("values", ["all", "none", "skip"]),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,51 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator):
|
||||
def __init__(self, plotly_name="hoverlabel", parent_name="sankey.node", **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,
|
||||
)
|
@ -0,0 +1,14 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator):
|
||||
def __init__(
|
||||
self, plotly_name="hovertemplate", parent_name="sankey.node", **kwargs
|
||||
):
|
||||
super(HovertemplateValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
array_ok=kwargs.pop("array_ok", True),
|
||||
edit_type=kwargs.pop("edit_type", "calc"),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,13 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator):
|
||||
def __init__(
|
||||
self, plotly_name="hovertemplatesrc", parent_name="sankey.node", **kwargs
|
||||
):
|
||||
super(HovertemplatesrcValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
edit_type=kwargs.pop("edit_type", "none"),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,11 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class LabelValidator(_plotly_utils.basevalidators.DataArrayValidator):
|
||||
def __init__(self, plotly_name="label", parent_name="sankey.node", **kwargs):
|
||||
super(LabelValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
edit_type=kwargs.pop("edit_type", "calc"),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,11 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class LabelsrcValidator(_plotly_utils.basevalidators.SrcValidator):
|
||||
def __init__(self, plotly_name="labelsrc", parent_name="sankey.node", **kwargs):
|
||||
super(LabelsrcValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
edit_type=kwargs.pop("edit_type", "none"),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,28 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class LineValidator(_plotly_utils.basevalidators.CompoundValidator):
|
||||
def __init__(self, plotly_name="line", parent_name="sankey.node", **kwargs):
|
||||
super(LineValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
data_class_str=kwargs.pop("data_class_str", "Line"),
|
||||
data_docs=kwargs.pop(
|
||||
"data_docs",
|
||||
"""
|
||||
color
|
||||
Sets the color of the `line` around each
|
||||
`node`.
|
||||
colorsrc
|
||||
Sets the source reference on Chart Studio Cloud
|
||||
for `color`.
|
||||
width
|
||||
Sets the width (in px) of the `line` around
|
||||
each `node`.
|
||||
widthsrc
|
||||
Sets the source reference on Chart Studio Cloud
|
||||
for `width`.
|
||||
""",
|
||||
),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,13 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class PadValidator(_plotly_utils.basevalidators.NumberValidator):
|
||||
def __init__(self, plotly_name="pad", parent_name="sankey.node", **kwargs):
|
||||
super(PadValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
array_ok=kwargs.pop("array_ok", False),
|
||||
edit_type=kwargs.pop("edit_type", "calc"),
|
||||
min=kwargs.pop("min", 0),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,13 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator):
|
||||
def __init__(self, plotly_name="thickness", parent_name="sankey.node", **kwargs):
|
||||
super(ThicknessValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
array_ok=kwargs.pop("array_ok", False),
|
||||
edit_type=kwargs.pop("edit_type", "calc"),
|
||||
min=kwargs.pop("min", 1),
|
||||
**kwargs,
|
||||
)
|
11
.venv/Lib/site-packages/plotly/validators/sankey/node/_x.py
Normal file
11
.venv/Lib/site-packages/plotly/validators/sankey/node/_x.py
Normal file
@ -0,0 +1,11 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class XValidator(_plotly_utils.basevalidators.DataArrayValidator):
|
||||
def __init__(self, plotly_name="x", parent_name="sankey.node", **kwargs):
|
||||
super(XValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
edit_type=kwargs.pop("edit_type", "calc"),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,11 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class XsrcValidator(_plotly_utils.basevalidators.SrcValidator):
|
||||
def __init__(self, plotly_name="xsrc", parent_name="sankey.node", **kwargs):
|
||||
super(XsrcValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
edit_type=kwargs.pop("edit_type", "none"),
|
||||
**kwargs,
|
||||
)
|
11
.venv/Lib/site-packages/plotly/validators/sankey/node/_y.py
Normal file
11
.venv/Lib/site-packages/plotly/validators/sankey/node/_y.py
Normal file
@ -0,0 +1,11 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class YValidator(_plotly_utils.basevalidators.DataArrayValidator):
|
||||
def __init__(self, plotly_name="y", parent_name="sankey.node", **kwargs):
|
||||
super(YValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
edit_type=kwargs.pop("edit_type", "calc"),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,11 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class YsrcValidator(_plotly_utils.basevalidators.SrcValidator):
|
||||
def __init__(self, plotly_name="ysrc", parent_name="sankey.node", **kwargs):
|
||||
super(YsrcValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
edit_type=kwargs.pop("edit_type", "none"),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,31 @@
|
||||
import sys
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
if sys.version_info < (3, 7) or TYPE_CHECKING:
|
||||
from ._namelengthsrc import NamelengthsrcValidator
|
||||
from ._namelength import NamelengthValidator
|
||||
from ._font import FontValidator
|
||||
from ._bordercolorsrc import BordercolorsrcValidator
|
||||
from ._bordercolor import BordercolorValidator
|
||||
from ._bgcolorsrc import BgcolorsrcValidator
|
||||
from ._bgcolor import BgcolorValidator
|
||||
from ._alignsrc import AlignsrcValidator
|
||||
from ._align import AlignValidator
|
||||
else:
|
||||
from _plotly_utils.importers import relative_import
|
||||
|
||||
__all__, __getattr__, __dir__ = relative_import(
|
||||
__name__,
|
||||
[],
|
||||
[
|
||||
"._namelengthsrc.NamelengthsrcValidator",
|
||||
"._namelength.NamelengthValidator",
|
||||
"._font.FontValidator",
|
||||
"._bordercolorsrc.BordercolorsrcValidator",
|
||||
"._bordercolor.BordercolorValidator",
|
||||
"._bgcolorsrc.BgcolorsrcValidator",
|
||||
"._bgcolor.BgcolorValidator",
|
||||
"._alignsrc.AlignsrcValidator",
|
||||
"._align.AlignValidator",
|
||||
],
|
||||
)
|
@ -0,0 +1,15 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator):
|
||||
def __init__(
|
||||
self, plotly_name="align", parent_name="sankey.node.hoverlabel", **kwargs
|
||||
):
|
||||
super(AlignValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
array_ok=kwargs.pop("array_ok", True),
|
||||
edit_type=kwargs.pop("edit_type", "calc"),
|
||||
values=kwargs.pop("values", ["left", "right", "auto"]),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,13 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator):
|
||||
def __init__(
|
||||
self, plotly_name="alignsrc", parent_name="sankey.node.hoverlabel", **kwargs
|
||||
):
|
||||
super(AlignsrcValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
edit_type=kwargs.pop("edit_type", "none"),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,14 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator):
|
||||
def __init__(
|
||||
self, plotly_name="bgcolor", parent_name="sankey.node.hoverlabel", **kwargs
|
||||
):
|
||||
super(BgcolorValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
array_ok=kwargs.pop("array_ok", True),
|
||||
edit_type=kwargs.pop("edit_type", "calc"),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,13 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator):
|
||||
def __init__(
|
||||
self, plotly_name="bgcolorsrc", parent_name="sankey.node.hoverlabel", **kwargs
|
||||
):
|
||||
super(BgcolorsrcValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
edit_type=kwargs.pop("edit_type", "none"),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,14 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator):
|
||||
def __init__(
|
||||
self, plotly_name="bordercolor", parent_name="sankey.node.hoverlabel", **kwargs
|
||||
):
|
||||
super(BordercolorValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
array_ok=kwargs.pop("array_ok", True),
|
||||
edit_type=kwargs.pop("edit_type", "calc"),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,16 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator):
|
||||
def __init__(
|
||||
self,
|
||||
plotly_name="bordercolorsrc",
|
||||
parent_name="sankey.node.hoverlabel",
|
||||
**kwargs,
|
||||
):
|
||||
super(BordercolorsrcValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
edit_type=kwargs.pop("edit_type", "none"),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,48 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class FontValidator(_plotly_utils.basevalidators.CompoundValidator):
|
||||
def __init__(
|
||||
self, plotly_name="font", parent_name="sankey.node.hoverlabel", **kwargs
|
||||
):
|
||||
super(FontValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
data_class_str=kwargs.pop("data_class_str", "Font"),
|
||||
data_docs=kwargs.pop(
|
||||
"data_docs",
|
||||
"""
|
||||
color
|
||||
|
||||
colorsrc
|
||||
Sets the source reference on Chart Studio Cloud
|
||||
for `color`.
|
||||
family
|
||||
HTML font family - the typeface that will be
|
||||
applied by the web browser. The web browser
|
||||
will only be able to apply a font if it is
|
||||
available on the system which it operates.
|
||||
Provide multiple font families, separated by
|
||||
commas, to indicate the preference in which to
|
||||
apply fonts if they aren't available on the
|
||||
system. The Chart Studio Cloud (at
|
||||
https://chart-studio.plotly.com or on-premise)
|
||||
generates images on a server, where only a
|
||||
select number of fonts are installed and
|
||||
supported. These include "Arial", "Balto",
|
||||
"Courier New", "Droid Sans",, "Droid Serif",
|
||||
"Droid Sans Mono", "Gravitas One", "Old
|
||||
Standard TT", "Open Sans", "Overpass", "PT Sans
|
||||
Narrow", "Raleway", "Times New Roman".
|
||||
familysrc
|
||||
Sets the source reference on Chart Studio Cloud
|
||||
for `family`.
|
||||
size
|
||||
|
||||
sizesrc
|
||||
Sets the source reference on Chart Studio Cloud
|
||||
for `size`.
|
||||
""",
|
||||
),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,15 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator):
|
||||
def __init__(
|
||||
self, plotly_name="namelength", parent_name="sankey.node.hoverlabel", **kwargs
|
||||
):
|
||||
super(NamelengthValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
array_ok=kwargs.pop("array_ok", True),
|
||||
edit_type=kwargs.pop("edit_type", "calc"),
|
||||
min=kwargs.pop("min", -1),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,16 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator):
|
||||
def __init__(
|
||||
self,
|
||||
plotly_name="namelengthsrc",
|
||||
parent_name="sankey.node.hoverlabel",
|
||||
**kwargs,
|
||||
):
|
||||
super(NamelengthsrcValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
edit_type=kwargs.pop("edit_type", "none"),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,25 @@
|
||||
import sys
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
if sys.version_info < (3, 7) or TYPE_CHECKING:
|
||||
from ._sizesrc import SizesrcValidator
|
||||
from ._size import SizeValidator
|
||||
from ._familysrc import FamilysrcValidator
|
||||
from ._family import FamilyValidator
|
||||
from ._colorsrc import ColorsrcValidator
|
||||
from ._color import ColorValidator
|
||||
else:
|
||||
from _plotly_utils.importers import relative_import
|
||||
|
||||
__all__, __getattr__, __dir__ = relative_import(
|
||||
__name__,
|
||||
[],
|
||||
[
|
||||
"._sizesrc.SizesrcValidator",
|
||||
"._size.SizeValidator",
|
||||
"._familysrc.FamilysrcValidator",
|
||||
"._family.FamilyValidator",
|
||||
"._colorsrc.ColorsrcValidator",
|
||||
"._color.ColorValidator",
|
||||
],
|
||||
)
|
@ -0,0 +1,14 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class ColorValidator(_plotly_utils.basevalidators.ColorValidator):
|
||||
def __init__(
|
||||
self, plotly_name="color", parent_name="sankey.node.hoverlabel.font", **kwargs
|
||||
):
|
||||
super(ColorValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
array_ok=kwargs.pop("array_ok", True),
|
||||
edit_type=kwargs.pop("edit_type", "calc"),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,16 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator):
|
||||
def __init__(
|
||||
self,
|
||||
plotly_name="colorsrc",
|
||||
parent_name="sankey.node.hoverlabel.font",
|
||||
**kwargs,
|
||||
):
|
||||
super(ColorsrcValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
edit_type=kwargs.pop("edit_type", "none"),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,16 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class FamilyValidator(_plotly_utils.basevalidators.StringValidator):
|
||||
def __init__(
|
||||
self, plotly_name="family", parent_name="sankey.node.hoverlabel.font", **kwargs
|
||||
):
|
||||
super(FamilyValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
array_ok=kwargs.pop("array_ok", True),
|
||||
edit_type=kwargs.pop("edit_type", "calc"),
|
||||
no_blank=kwargs.pop("no_blank", True),
|
||||
strict=kwargs.pop("strict", True),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,16 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator):
|
||||
def __init__(
|
||||
self,
|
||||
plotly_name="familysrc",
|
||||
parent_name="sankey.node.hoverlabel.font",
|
||||
**kwargs,
|
||||
):
|
||||
super(FamilysrcValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
edit_type=kwargs.pop("edit_type", "none"),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,15 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class SizeValidator(_plotly_utils.basevalidators.NumberValidator):
|
||||
def __init__(
|
||||
self, plotly_name="size", parent_name="sankey.node.hoverlabel.font", **kwargs
|
||||
):
|
||||
super(SizeValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
array_ok=kwargs.pop("array_ok", True),
|
||||
edit_type=kwargs.pop("edit_type", "calc"),
|
||||
min=kwargs.pop("min", 1),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,13 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator):
|
||||
def __init__(
|
||||
self, plotly_name="sizesrc", parent_name="sankey.node.hoverlabel.font", **kwargs
|
||||
):
|
||||
super(SizesrcValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
edit_type=kwargs.pop("edit_type", "none"),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,21 @@
|
||||
import sys
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
if sys.version_info < (3, 7) or TYPE_CHECKING:
|
||||
from ._widthsrc import WidthsrcValidator
|
||||
from ._width import WidthValidator
|
||||
from ._colorsrc import ColorsrcValidator
|
||||
from ._color import ColorValidator
|
||||
else:
|
||||
from _plotly_utils.importers import relative_import
|
||||
|
||||
__all__, __getattr__, __dir__ = relative_import(
|
||||
__name__,
|
||||
[],
|
||||
[
|
||||
"._widthsrc.WidthsrcValidator",
|
||||
"._width.WidthValidator",
|
||||
"._colorsrc.ColorsrcValidator",
|
||||
"._color.ColorValidator",
|
||||
],
|
||||
)
|
@ -0,0 +1,12 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class ColorValidator(_plotly_utils.basevalidators.ColorValidator):
|
||||
def __init__(self, plotly_name="color", parent_name="sankey.node.line", **kwargs):
|
||||
super(ColorValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
array_ok=kwargs.pop("array_ok", True),
|
||||
edit_type=kwargs.pop("edit_type", "calc"),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,13 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator):
|
||||
def __init__(
|
||||
self, plotly_name="colorsrc", parent_name="sankey.node.line", **kwargs
|
||||
):
|
||||
super(ColorsrcValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
edit_type=kwargs.pop("edit_type", "none"),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,13 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class WidthValidator(_plotly_utils.basevalidators.NumberValidator):
|
||||
def __init__(self, plotly_name="width", parent_name="sankey.node.line", **kwargs):
|
||||
super(WidthValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
array_ok=kwargs.pop("array_ok", True),
|
||||
edit_type=kwargs.pop("edit_type", "calc"),
|
||||
min=kwargs.pop("min", 0),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,13 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator):
|
||||
def __init__(
|
||||
self, plotly_name="widthsrc", parent_name="sankey.node.line", **kwargs
|
||||
):
|
||||
super(WidthsrcValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
edit_type=kwargs.pop("edit_type", "none"),
|
||||
**kwargs,
|
||||
)
|
Reference in New Issue
Block a user