mirror of
https://github.com/aykhans/AzSuicideDataVisualization.git
synced 2025-07-02 14:27:31 +00:00
first commit
This commit is contained in:
@ -0,0 +1,51 @@
|
||||
import sys
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
if sys.version_info < (3, 7) or TYPE_CHECKING:
|
||||
from ._valuesrc import ValuesrcValidator
|
||||
from ._value import ValueValidator
|
||||
from ._targetsrc import TargetsrcValidator
|
||||
from ._target import TargetValidator
|
||||
from ._sourcesrc import SourcesrcValidator
|
||||
from ._source import SourceValidator
|
||||
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 ._customdatasrc import CustomdatasrcValidator
|
||||
from ._customdata import CustomdataValidator
|
||||
from ._colorsrc import ColorsrcValidator
|
||||
from ._colorscaledefaults import ColorscaledefaultsValidator
|
||||
from ._colorscales import ColorscalesValidator
|
||||
from ._color import ColorValidator
|
||||
else:
|
||||
from _plotly_utils.importers import relative_import
|
||||
|
||||
__all__, __getattr__, __dir__ = relative_import(
|
||||
__name__,
|
||||
[],
|
||||
[
|
||||
"._valuesrc.ValuesrcValidator",
|
||||
"._value.ValueValidator",
|
||||
"._targetsrc.TargetsrcValidator",
|
||||
"._target.TargetValidator",
|
||||
"._sourcesrc.SourcesrcValidator",
|
||||
"._source.SourceValidator",
|
||||
"._line.LineValidator",
|
||||
"._labelsrc.LabelsrcValidator",
|
||||
"._label.LabelValidator",
|
||||
"._hovertemplatesrc.HovertemplatesrcValidator",
|
||||
"._hovertemplate.HovertemplateValidator",
|
||||
"._hoverlabel.HoverlabelValidator",
|
||||
"._hoverinfo.HoverinfoValidator",
|
||||
"._customdatasrc.CustomdatasrcValidator",
|
||||
"._customdata.CustomdataValidator",
|
||||
"._colorsrc.ColorsrcValidator",
|
||||
"._colorscaledefaults.ColorscaledefaultsValidator",
|
||||
"._colorscales.ColorscalesValidator",
|
||||
"._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.link", **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,18 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class ColorscaledefaultsValidator(_plotly_utils.basevalidators.CompoundValidator):
|
||||
def __init__(
|
||||
self, plotly_name="colorscaledefaults", parent_name="sankey.link", **kwargs
|
||||
):
|
||||
super(ColorscaledefaultsValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
data_class_str=kwargs.pop("data_class_str", "Colorscale"),
|
||||
data_docs=kwargs.pop(
|
||||
"data_docs",
|
||||
"""
|
||||
""",
|
||||
),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,58 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class ColorscalesValidator(_plotly_utils.basevalidators.CompoundArrayValidator):
|
||||
def __init__(self, plotly_name="colorscales", parent_name="sankey.link", **kwargs):
|
||||
super(ColorscalesValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
data_class_str=kwargs.pop("data_class_str", "Colorscale"),
|
||||
data_docs=kwargs.pop(
|
||||
"data_docs",
|
||||
"""
|
||||
cmax
|
||||
Sets the upper bound of the color domain.
|
||||
cmin
|
||||
Sets the lower bound of the color domain.
|
||||
colorscale
|
||||
Sets the colorscale. The colorscale must be an
|
||||
array containing arrays mapping a normalized
|
||||
value to an rgb, rgba, hex, hsl, hsv, or named
|
||||
color string. At minimum, a mapping for the
|
||||
lowest (0) and highest (1) values are required.
|
||||
For example, `[[0, 'rgb(0,0,255)'], [1,
|
||||
'rgb(255,0,0)']]`. To control the bounds of the
|
||||
colorscale in color space, use `cmin` and
|
||||
`cmax`. Alternatively, `colorscale` may be a
|
||||
palette name string of the following list: Blac
|
||||
kbody,Bluered,Blues,Cividis,Earth,Electric,Gree
|
||||
ns,Greys,Hot,Jet,Picnic,Portland,Rainbow,RdBu,R
|
||||
eds,Viridis,YlGnBu,YlOrRd.
|
||||
label
|
||||
The label of the links to color based on their
|
||||
concentration within a flow.
|
||||
name
|
||||
When used in a template, named items are
|
||||
created in the output figure in addition to any
|
||||
items the figure already has in this array. You
|
||||
can modify these items in the output figure by
|
||||
making your own item with `templateitemname`
|
||||
matching this `name` alongside your
|
||||
modifications (including `visible: false` or
|
||||
`enabled: false` to hide it). Has no effect
|
||||
outside of a template.
|
||||
templateitemname
|
||||
Used to refer to a named item in this array in
|
||||
the template. Named items from the template
|
||||
will be created even without a matching item in
|
||||
the input figure, but you can modify one by
|
||||
making an item with `templateitemname` matching
|
||||
its `name`, alongside your modifications
|
||||
(including `visible: false` or `enabled: false`
|
||||
to hide it). If there is no template or no
|
||||
matching item, this item will be hidden unless
|
||||
you explicitly show it with `visible: true`.
|
||||
""",
|
||||
),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,11 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator):
|
||||
def __init__(self, plotly_name="colorsrc", parent_name="sankey.link", **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.link", **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.link", **kwargs
|
||||
):
|
||||
super(CustomdatasrcValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
edit_type=kwargs.pop("edit_type", "none"),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,12 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class HoverinfoValidator(_plotly_utils.basevalidators.EnumeratedValidator):
|
||||
def __init__(self, plotly_name="hoverinfo", parent_name="sankey.link", **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.link", **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.link", **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.link", **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.link", **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.link", **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.link", **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
|
||||
`link`.
|
||||
colorsrc
|
||||
Sets the source reference on Chart Studio Cloud
|
||||
for `color`.
|
||||
width
|
||||
Sets the width (in px) of the `line` around
|
||||
each `link`.
|
||||
widthsrc
|
||||
Sets the source reference on Chart Studio Cloud
|
||||
for `width`.
|
||||
""",
|
||||
),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,11 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class SourceValidator(_plotly_utils.basevalidators.DataArrayValidator):
|
||||
def __init__(self, plotly_name="source", parent_name="sankey.link", **kwargs):
|
||||
super(SourceValidator, 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 SourcesrcValidator(_plotly_utils.basevalidators.SrcValidator):
|
||||
def __init__(self, plotly_name="sourcesrc", parent_name="sankey.link", **kwargs):
|
||||
super(SourcesrcValidator, 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 TargetValidator(_plotly_utils.basevalidators.DataArrayValidator):
|
||||
def __init__(self, plotly_name="target", parent_name="sankey.link", **kwargs):
|
||||
super(TargetValidator, 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 TargetsrcValidator(_plotly_utils.basevalidators.SrcValidator):
|
||||
def __init__(self, plotly_name="targetsrc", parent_name="sankey.link", **kwargs):
|
||||
super(TargetsrcValidator, 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 ValueValidator(_plotly_utils.basevalidators.DataArrayValidator):
|
||||
def __init__(self, plotly_name="value", parent_name="sankey.link", **kwargs):
|
||||
super(ValueValidator, 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 ValuesrcValidator(_plotly_utils.basevalidators.SrcValidator):
|
||||
def __init__(self, plotly_name="valuesrc", parent_name="sankey.link", **kwargs):
|
||||
super(ValuesrcValidator, 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 ._templateitemname import TemplateitemnameValidator
|
||||
from ._name import NameValidator
|
||||
from ._label import LabelValidator
|
||||
from ._colorscale import ColorscaleValidator
|
||||
from ._cmin import CminValidator
|
||||
from ._cmax import CmaxValidator
|
||||
else:
|
||||
from _plotly_utils.importers import relative_import
|
||||
|
||||
__all__, __getattr__, __dir__ = relative_import(
|
||||
__name__,
|
||||
[],
|
||||
[
|
||||
"._templateitemname.TemplateitemnameValidator",
|
||||
"._name.NameValidator",
|
||||
"._label.LabelValidator",
|
||||
"._colorscale.ColorscaleValidator",
|
||||
"._cmin.CminValidator",
|
||||
"._cmax.CmaxValidator",
|
||||
],
|
||||
)
|
@ -0,0 +1,13 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class CmaxValidator(_plotly_utils.basevalidators.NumberValidator):
|
||||
def __init__(
|
||||
self, plotly_name="cmax", parent_name="sankey.link.colorscale", **kwargs
|
||||
):
|
||||
super(CmaxValidator, 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 CminValidator(_plotly_utils.basevalidators.NumberValidator):
|
||||
def __init__(
|
||||
self, plotly_name="cmin", parent_name="sankey.link.colorscale", **kwargs
|
||||
):
|
||||
super(CminValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
edit_type=kwargs.pop("edit_type", "calc"),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,14 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator):
|
||||
def __init__(
|
||||
self, plotly_name="colorscale", parent_name="sankey.link.colorscale", **kwargs
|
||||
):
|
||||
super(ColorscaleValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
edit_type=kwargs.pop("edit_type", "calc"),
|
||||
implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,13 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class LabelValidator(_plotly_utils.basevalidators.StringValidator):
|
||||
def __init__(
|
||||
self, plotly_name="label", parent_name="sankey.link.colorscale", **kwargs
|
||||
):
|
||||
super(LabelValidator, 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 NameValidator(_plotly_utils.basevalidators.StringValidator):
|
||||
def __init__(
|
||||
self, plotly_name="name", parent_name="sankey.link.colorscale", **kwargs
|
||||
):
|
||||
super(NameValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
edit_type=kwargs.pop("edit_type", "calc"),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,16 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator):
|
||||
def __init__(
|
||||
self,
|
||||
plotly_name="templateitemname",
|
||||
parent_name="sankey.link.colorscale",
|
||||
**kwargs,
|
||||
):
|
||||
super(TemplateitemnameValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
edit_type=kwargs.pop("edit_type", "calc"),
|
||||
**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.link.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.link.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.link.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.link.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.link.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.link.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.link.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.link.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.link.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.link.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.link.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.link.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.link.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.link.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.link.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.link.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.link.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.link.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.link.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