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,12 @@
|
||||
import sys
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
if sys.version_info < (3, 7) or TYPE_CHECKING:
|
||||
from ._line import LineValidator
|
||||
from ._fillcolor import FillcolorValidator
|
||||
else:
|
||||
from _plotly_utils.importers import relative_import
|
||||
|
||||
__all__, __getattr__, __dir__ = relative_import(
|
||||
__name__, [], ["._line.LineValidator", "._fillcolor.FillcolorValidator"]
|
||||
)
|
@ -0,0 +1,13 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator):
|
||||
def __init__(
|
||||
self, plotly_name="fillcolor", parent_name="candlestick.decreasing", **kwargs
|
||||
):
|
||||
super(FillcolorValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
edit_type=kwargs.pop("edit_type", "style"),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,23 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class LineValidator(_plotly_utils.basevalidators.CompoundValidator):
|
||||
def __init__(
|
||||
self, plotly_name="line", parent_name="candlestick.decreasing", **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 line bounding the box(es).
|
||||
width
|
||||
Sets the width (in px) of line bounding the
|
||||
box(es).
|
||||
""",
|
||||
),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,12 @@
|
||||
import sys
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
if sys.version_info < (3, 7) or TYPE_CHECKING:
|
||||
from ._width import WidthValidator
|
||||
from ._color import ColorValidator
|
||||
else:
|
||||
from _plotly_utils.importers import relative_import
|
||||
|
||||
__all__, __getattr__, __dir__ = relative_import(
|
||||
__name__, [], ["._width.WidthValidator", "._color.ColorValidator"]
|
||||
)
|
@ -0,0 +1,13 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class ColorValidator(_plotly_utils.basevalidators.ColorValidator):
|
||||
def __init__(
|
||||
self, plotly_name="color", parent_name="candlestick.decreasing.line", **kwargs
|
||||
):
|
||||
super(ColorValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
edit_type=kwargs.pop("edit_type", "style"),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,14 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class WidthValidator(_plotly_utils.basevalidators.NumberValidator):
|
||||
def __init__(
|
||||
self, plotly_name="width", parent_name="candlestick.decreasing.line", **kwargs
|
||||
):
|
||||
super(WidthValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
edit_type=kwargs.pop("edit_type", "style"),
|
||||
min=kwargs.pop("min", 0),
|
||||
**kwargs,
|
||||
)
|
Reference in New Issue
Block a user