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,19 @@
|
||||
import sys
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
if sys.version_info < (3, 7) or TYPE_CHECKING:
|
||||
from ._enabled import EnabledValidator
|
||||
from ._direction import DirectionValidator
|
||||
from ._currentbin import CurrentbinValidator
|
||||
else:
|
||||
from _plotly_utils.importers import relative_import
|
||||
|
||||
__all__, __getattr__, __dir__ = relative_import(
|
||||
__name__,
|
||||
[],
|
||||
[
|
||||
"._enabled.EnabledValidator",
|
||||
"._direction.DirectionValidator",
|
||||
"._currentbin.CurrentbinValidator",
|
||||
],
|
||||
)
|
@ -0,0 +1,14 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class CurrentbinValidator(_plotly_utils.basevalidators.EnumeratedValidator):
|
||||
def __init__(
|
||||
self, plotly_name="currentbin", parent_name="histogram.cumulative", **kwargs
|
||||
):
|
||||
super(CurrentbinValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
edit_type=kwargs.pop("edit_type", "calc"),
|
||||
values=kwargs.pop("values", ["include", "exclude", "half"]),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,14 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class DirectionValidator(_plotly_utils.basevalidators.EnumeratedValidator):
|
||||
def __init__(
|
||||
self, plotly_name="direction", parent_name="histogram.cumulative", **kwargs
|
||||
):
|
||||
super(DirectionValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
edit_type=kwargs.pop("edit_type", "calc"),
|
||||
values=kwargs.pop("values", ["increasing", "decreasing"]),
|
||||
**kwargs,
|
||||
)
|
@ -0,0 +1,13 @@
|
||||
import _plotly_utils.basevalidators
|
||||
|
||||
|
||||
class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator):
|
||||
def __init__(
|
||||
self, plotly_name="enabled", parent_name="histogram.cumulative", **kwargs
|
||||
):
|
||||
super(EnabledValidator, self).__init__(
|
||||
plotly_name=plotly_name,
|
||||
parent_name=parent_name,
|
||||
edit_type=kwargs.pop("edit_type", "calc"),
|
||||
**kwargs,
|
||||
)
|
Reference in New Issue
Block a user