diff --git a/packages/python/plotly/codegen/utils.py b/packages/python/plotly/codegen/utils.py index 2b70add65b5..5bdf3d05c18 100644 --- a/packages/python/plotly/codegen/utils.py +++ b/packages/python/plotly/codegen/utils.py @@ -180,25 +180,6 @@ def format_description(desc): "frame.layout": "plotly.validators.LayoutValidator", } -# Add custom dash validators -CUSTOM_VALIDATOR_DATATYPES.update( - { - prop: "_plotly_utils.basevalidators.DashValidator" - for prop in [ - "scatter.line.dash", - "histogram2dcontour.line.dash", - "scattergeo.line.dash", - "scatterpolar.line.dash", - "ohlc.line.dash", - "ohlc.decreasing.line.dash", - "ohlc.increasing.line.dash", - "contourcarpet.line.dash", - "contour.line.dash", - "scatterternary.line.dash", - "scattercarpet.line.dash", - ] - } -) # Mapping from property string (as found in plot-schema.json) to a custom # class name. If not included here, names are converted to TitleCase and @@ -435,9 +416,11 @@ def name_base_validator(self) -> str: str """ if self.path_str in CUSTOM_VALIDATOR_DATATYPES: - validator_base = f"{CUSTOM_VALIDATOR_DATATYPES[self.path_str]}" + validator_base = CUSTOM_VALIDATOR_DATATYPES[self.path_str] elif self.plotly_name.endswith("src") and self.datatype == "string": - validator_base = f"_plotly_utils.basevalidators." f"SrcValidator" + validator_base = "_plotly_utils.basevalidators.SrcValidator" + elif self.plotly_name.endswith("dash") and self.datatype == "string": + validator_base = "_plotly_utils.basevalidators.DashValidator" elif self.plotly_name == "title" and self.datatype == "compound": validator_base = "_plotly_utils.basevalidators.TitleValidator" else: diff --git a/packages/python/plotly/plotly/graph_objs/carpet/_aaxis.py b/packages/python/plotly/plotly/graph_objs/carpet/_aaxis.py index 89a3ecf55a8..41bb446450c 100644 --- a/packages/python/plotly/plotly/graph_objs/carpet/_aaxis.py +++ b/packages/python/plotly/plotly/graph_objs/carpet/_aaxis.py @@ -551,11 +551,11 @@ def griddash(self): "longdashdot") or a dash length list in px (eg "5px,10px,2px,2px"). - The 'griddash' property is a string and must be specified as: - - One of the following strings: - ['solid', 'dot', 'dash', 'longdash', 'dashdot', - 'longdashdot'] - - A number that will be converted to a string + The 'griddash' property is an enumeration that may be specified as: + - One of the following dash styles: + ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot'] + - A string containing a dash length list in pixels or percentages + (e.g. '5px 10px 2px 2px', '5, 10, 2, 2', '10% 20% 40%', etc.) Returns ------- @@ -838,11 +838,11 @@ def minorgriddash(self): "longdashdot") or a dash length list in px (eg "5px,10px,2px,2px"). - The 'minorgriddash' property is a string and must be specified as: - - One of the following strings: - ['solid', 'dot', 'dash', 'longdash', 'dashdot', - 'longdashdot'] - - A number that will be converted to a string + The 'minorgriddash' property is an enumeration that may be specified as: + - One of the following dash styles: + ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot'] + - A string containing a dash length list in pixels or percentages + (e.g. '5px 10px 2px 2px', '5, 10, 2, 2', '10% 20% 40%', etc.) Returns ------- diff --git a/packages/python/plotly/plotly/graph_objs/carpet/_baxis.py b/packages/python/plotly/plotly/graph_objs/carpet/_baxis.py index 82c7a246c9d..f5387413497 100644 --- a/packages/python/plotly/plotly/graph_objs/carpet/_baxis.py +++ b/packages/python/plotly/plotly/graph_objs/carpet/_baxis.py @@ -551,11 +551,11 @@ def griddash(self): "longdashdot") or a dash length list in px (eg "5px,10px,2px,2px"). - The 'griddash' property is a string and must be specified as: - - One of the following strings: - ['solid', 'dot', 'dash', 'longdash', 'dashdot', - 'longdashdot'] - - A number that will be converted to a string + The 'griddash' property is an enumeration that may be specified as: + - One of the following dash styles: + ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot'] + - A string containing a dash length list in pixels or percentages + (e.g. '5px 10px 2px 2px', '5, 10, 2, 2', '10% 20% 40%', etc.) Returns ------- @@ -838,11 +838,11 @@ def minorgriddash(self): "longdashdot") or a dash length list in px (eg "5px,10px,2px,2px"). - The 'minorgriddash' property is a string and must be specified as: - - One of the following strings: - ['solid', 'dot', 'dash', 'longdash', 'dashdot', - 'longdashdot'] - - A number that will be converted to a string + The 'minorgriddash' property is an enumeration that may be specified as: + - One of the following dash styles: + ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot'] + - A string containing a dash length list in pixels or percentages + (e.g. '5px 10px 2px 2px', '5, 10, 2, 2', '10% 20% 40%', etc.) Returns ------- diff --git a/packages/python/plotly/plotly/graph_objs/funnel/connector/_line.py b/packages/python/plotly/plotly/graph_objs/funnel/connector/_line.py index 0771bf8e8f3..3439f83ecef 100644 --- a/packages/python/plotly/plotly/graph_objs/funnel/connector/_line.py +++ b/packages/python/plotly/plotly/graph_objs/funnel/connector/_line.py @@ -79,11 +79,11 @@ def dash(self): "longdashdot") or a dash length list in px (eg "5px,10px,2px,2px"). - The 'dash' property is a string and must be specified as: - - One of the following strings: - ['solid', 'dot', 'dash', 'longdash', 'dashdot', - 'longdashdot'] - - A number that will be converted to a string + The 'dash' property is an enumeration that may be specified as: + - One of the following dash styles: + ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot'] + - A string containing a dash length list in pixels or percentages + (e.g. '5px 10px 2px 2px', '5, 10, 2, 2', '10% 20% 40%', etc.) Returns ------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/_xaxis.py b/packages/python/plotly/plotly/graph_objs/layout/_xaxis.py index d5003c40c22..958f173f108 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/_xaxis.py +++ b/packages/python/plotly/plotly/graph_objs/layout/_xaxis.py @@ -671,11 +671,11 @@ def griddash(self): "longdashdot") or a dash length list in px (eg "5px,10px,2px,2px"). - The 'griddash' property is a string and must be specified as: - - One of the following strings: - ['solid', 'dot', 'dash', 'longdash', 'dashdot', - 'longdashdot'] - - A number that will be converted to a string + The 'griddash' property is an enumeration that may be specified as: + - One of the following dash styles: + ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot'] + - A string containing a dash length list in pixels or percentages + (e.g. '5px 10px 2px 2px', '5, 10, 2, 2', '10% 20% 40%', etc.) Returns ------- @@ -1735,11 +1735,11 @@ def spikedash(self): "longdashdot") or a dash length list in px (eg "5px,10px,2px,2px"). - The 'spikedash' property is a string and must be specified as: - - One of the following strings: - ['solid', 'dot', 'dash', 'longdash', 'dashdot', - 'longdashdot'] - - A number that will be converted to a string + The 'spikedash' property is an enumeration that may be specified as: + - One of the following dash styles: + ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot'] + - A string containing a dash length list in pixels or percentages + (e.g. '5px 10px 2px 2px', '5, 10, 2, 2', '10% 20% 40%', etc.) Returns ------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/_yaxis.py b/packages/python/plotly/plotly/graph_objs/layout/_yaxis.py index 57f6d960639..fedb49deb30 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/_yaxis.py +++ b/packages/python/plotly/plotly/graph_objs/layout/_yaxis.py @@ -669,11 +669,11 @@ def griddash(self): "longdashdot") or a dash length list in px (eg "5px,10px,2px,2px"). - The 'griddash' property is a string and must be specified as: - - One of the following strings: - ['solid', 'dot', 'dash', 'longdash', 'dashdot', - 'longdashdot'] - - A number that will be converted to a string + The 'griddash' property is an enumeration that may be specified as: + - One of the following dash styles: + ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot'] + - A string containing a dash length list in pixels or percentages + (e.g. '5px 10px 2px 2px', '5, 10, 2, 2', '10% 20% 40%', etc.) Returns ------- @@ -1606,11 +1606,11 @@ def spikedash(self): "longdashdot") or a dash length list in px (eg "5px,10px,2px,2px"). - The 'spikedash' property is a string and must be specified as: - - One of the following strings: - ['solid', 'dot', 'dash', 'longdash', 'dashdot', - 'longdashdot'] - - A number that will be converted to a string + The 'spikedash' property is an enumeration that may be specified as: + - One of the following dash styles: + ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot'] + - A string containing a dash length list in pixels or percentages + (e.g. '5px 10px 2px 2px', '5, 10, 2, 2', '10% 20% 40%', etc.) Returns ------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/geo/_lataxis.py b/packages/python/plotly/plotly/graph_objs/layout/geo/_lataxis.py index 696bb10e6c6..be44d0c62ff 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/geo/_lataxis.py +++ b/packages/python/plotly/plotly/graph_objs/layout/geo/_lataxis.py @@ -107,11 +107,11 @@ def griddash(self): "longdashdot") or a dash length list in px (eg "5px,10px,2px,2px"). - The 'griddash' property is a string and must be specified as: - - One of the following strings: - ['solid', 'dot', 'dash', 'longdash', 'dashdot', - 'longdashdot'] - - A number that will be converted to a string + The 'griddash' property is an enumeration that may be specified as: + - One of the following dash styles: + ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot'] + - A string containing a dash length list in pixels or percentages + (e.g. '5px 10px 2px 2px', '5, 10, 2, 2', '10% 20% 40%', etc.) Returns ------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/geo/_lonaxis.py b/packages/python/plotly/plotly/graph_objs/layout/geo/_lonaxis.py index b3e5dbd32b3..5d36dd6fbcd 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/geo/_lonaxis.py +++ b/packages/python/plotly/plotly/graph_objs/layout/geo/_lonaxis.py @@ -107,11 +107,11 @@ def griddash(self): "longdashdot") or a dash length list in px (eg "5px,10px,2px,2px"). - The 'griddash' property is a string and must be specified as: - - One of the following strings: - ['solid', 'dot', 'dash', 'longdash', 'dashdot', - 'longdashdot'] - - A number that will be converted to a string + The 'griddash' property is an enumeration that may be specified as: + - One of the following dash styles: + ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot'] + - A string containing a dash length list in pixels or percentages + (e.g. '5px 10px 2px 2px', '5, 10, 2, 2', '10% 20% 40%', etc.) Returns ------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/newshape/_line.py b/packages/python/plotly/plotly/graph_objs/layout/newshape/_line.py index 5b7b8df9c36..9c512912686 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/newshape/_line.py +++ b/packages/python/plotly/plotly/graph_objs/layout/newshape/_line.py @@ -80,11 +80,11 @@ def dash(self): "longdashdot") or a dash length list in px (eg "5px,10px,2px,2px"). - The 'dash' property is a string and must be specified as: - - One of the following strings: - ['solid', 'dot', 'dash', 'longdash', 'dashdot', - 'longdashdot'] - - A number that will be converted to a string + The 'dash' property is an enumeration that may be specified as: + - One of the following dash styles: + ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot'] + - A string containing a dash length list in pixels or percentages + (e.g. '5px 10px 2px 2px', '5, 10, 2, 2', '10% 20% 40%', etc.) Returns ------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/polar/_angularaxis.py b/packages/python/plotly/plotly/graph_objs/layout/polar/_angularaxis.py index 57fc27f258a..9e884a801d6 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/polar/_angularaxis.py +++ b/packages/python/plotly/plotly/graph_objs/layout/polar/_angularaxis.py @@ -381,11 +381,11 @@ def griddash(self): "longdashdot") or a dash length list in px (eg "5px,10px,2px,2px"). - The 'griddash' property is a string and must be specified as: - - One of the following strings: - ['solid', 'dot', 'dash', 'longdash', 'dashdot', - 'longdashdot'] - - A number that will be converted to a string + The 'griddash' property is an enumeration that may be specified as: + - One of the following dash styles: + ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot'] + - A string containing a dash length list in pixels or percentages + (e.g. '5px 10px 2px 2px', '5, 10, 2, 2', '10% 20% 40%', etc.) Returns ------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/polar/_radialaxis.py b/packages/python/plotly/plotly/graph_objs/layout/polar/_radialaxis.py index 2f516c6b8a6..e6bad1d40c9 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/polar/_radialaxis.py +++ b/packages/python/plotly/plotly/graph_objs/layout/polar/_radialaxis.py @@ -440,11 +440,11 @@ def griddash(self): "longdashdot") or a dash length list in px (eg "5px,10px,2px,2px"). - The 'griddash' property is a string and must be specified as: - - One of the following strings: - ['solid', 'dot', 'dash', 'longdash', 'dashdot', - 'longdashdot'] - - A number that will be converted to a string + The 'griddash' property is an enumeration that may be specified as: + - One of the following dash styles: + ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot'] + - A string containing a dash length list in pixels or percentages + (e.g. '5px 10px 2px 2px', '5, 10, 2, 2', '10% 20% 40%', etc.) Returns ------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/shape/_line.py b/packages/python/plotly/plotly/graph_objs/layout/shape/_line.py index 70f90dbb34d..cdddbeee78a 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/shape/_line.py +++ b/packages/python/plotly/plotly/graph_objs/layout/shape/_line.py @@ -79,11 +79,11 @@ def dash(self): "longdashdot") or a dash length list in px (eg "5px,10px,2px,2px"). - The 'dash' property is a string and must be specified as: - - One of the following strings: - ['solid', 'dot', 'dash', 'longdash', 'dashdot', - 'longdashdot'] - - A number that will be converted to a string + The 'dash' property is an enumeration that may be specified as: + - One of the following dash styles: + ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot'] + - A string containing a dash length list in pixels or percentages + (e.g. '5px 10px 2px 2px', '5, 10, 2, 2', '10% 20% 40%', etc.) Returns ------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/smith/_imaginaryaxis.py b/packages/python/plotly/plotly/graph_objs/layout/smith/_imaginaryaxis.py index b8266ff1eab..04838ec6edb 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/smith/_imaginaryaxis.py +++ b/packages/python/plotly/plotly/graph_objs/layout/smith/_imaginaryaxis.py @@ -166,11 +166,11 @@ def griddash(self): "longdashdot") or a dash length list in px (eg "5px,10px,2px,2px"). - The 'griddash' property is a string and must be specified as: - - One of the following strings: - ['solid', 'dot', 'dash', 'longdash', 'dashdot', - 'longdashdot'] - - A number that will be converted to a string + The 'griddash' property is an enumeration that may be specified as: + - One of the following dash styles: + ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot'] + - A string containing a dash length list in pixels or percentages + (e.g. '5px 10px 2px 2px', '5, 10, 2, 2', '10% 20% 40%', etc.) Returns ------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/smith/_realaxis.py b/packages/python/plotly/plotly/graph_objs/layout/smith/_realaxis.py index f4fe53938ae..dda9cc6c7f2 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/smith/_realaxis.py +++ b/packages/python/plotly/plotly/graph_objs/layout/smith/_realaxis.py @@ -168,11 +168,11 @@ def griddash(self): "longdashdot") or a dash length list in px (eg "5px,10px,2px,2px"). - The 'griddash' property is a string and must be specified as: - - One of the following strings: - ['solid', 'dot', 'dash', 'longdash', 'dashdot', - 'longdashdot'] - - A number that will be converted to a string + The 'griddash' property is an enumeration that may be specified as: + - One of the following dash styles: + ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot'] + - A string containing a dash length list in pixels or percentages + (e.g. '5px 10px 2px 2px', '5, 10, 2, 2', '10% 20% 40%', etc.) Returns ------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/ternary/_aaxis.py b/packages/python/plotly/plotly/graph_objs/layout/ternary/_aaxis.py index ab29ae2d0f2..14581357645 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/ternary/_aaxis.py +++ b/packages/python/plotly/plotly/graph_objs/layout/ternary/_aaxis.py @@ -246,11 +246,11 @@ def griddash(self): "longdashdot") or a dash length list in px (eg "5px,10px,2px,2px"). - The 'griddash' property is a string and must be specified as: - - One of the following strings: - ['solid', 'dot', 'dash', 'longdash', 'dashdot', - 'longdashdot'] - - A number that will be converted to a string + The 'griddash' property is an enumeration that may be specified as: + - One of the following dash styles: + ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot'] + - A string containing a dash length list in pixels or percentages + (e.g. '5px 10px 2px 2px', '5, 10, 2, 2', '10% 20% 40%', etc.) Returns ------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/ternary/_baxis.py b/packages/python/plotly/plotly/graph_objs/layout/ternary/_baxis.py index 62dd107af43..71cadbd49c5 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/ternary/_baxis.py +++ b/packages/python/plotly/plotly/graph_objs/layout/ternary/_baxis.py @@ -246,11 +246,11 @@ def griddash(self): "longdashdot") or a dash length list in px (eg "5px,10px,2px,2px"). - The 'griddash' property is a string and must be specified as: - - One of the following strings: - ['solid', 'dot', 'dash', 'longdash', 'dashdot', - 'longdashdot'] - - A number that will be converted to a string + The 'griddash' property is an enumeration that may be specified as: + - One of the following dash styles: + ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot'] + - A string containing a dash length list in pixels or percentages + (e.g. '5px 10px 2px 2px', '5, 10, 2, 2', '10% 20% 40%', etc.) Returns ------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/ternary/_caxis.py b/packages/python/plotly/plotly/graph_objs/layout/ternary/_caxis.py index cf487ab2fcc..d8ea08782ab 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/ternary/_caxis.py +++ b/packages/python/plotly/plotly/graph_objs/layout/ternary/_caxis.py @@ -246,11 +246,11 @@ def griddash(self): "longdashdot") or a dash length list in px (eg "5px,10px,2px,2px"). - The 'griddash' property is a string and must be specified as: - - One of the following strings: - ['solid', 'dot', 'dash', 'longdash', 'dashdot', - 'longdashdot'] - - A number that will be converted to a string + The 'griddash' property is an enumeration that may be specified as: + - One of the following dash styles: + ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot'] + - A string containing a dash length list in pixels or percentages + (e.g. '5px 10px 2px 2px', '5, 10, 2, 2', '10% 20% 40%', etc.) Returns ------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/xaxis/_minor.py b/packages/python/plotly/plotly/graph_objs/layout/xaxis/_minor.py index 7a456088654..08ccaacfc71 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/xaxis/_minor.py +++ b/packages/python/plotly/plotly/graph_objs/layout/xaxis/_minor.py @@ -132,11 +132,11 @@ def griddash(self): "longdashdot") or a dash length list in px (eg "5px,10px,2px,2px"). - The 'griddash' property is a string and must be specified as: - - One of the following strings: - ['solid', 'dot', 'dash', 'longdash', 'dashdot', - 'longdashdot'] - - A number that will be converted to a string + The 'griddash' property is an enumeration that may be specified as: + - One of the following dash styles: + ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot'] + - A string containing a dash length list in pixels or percentages + (e.g. '5px 10px 2px 2px', '5, 10, 2, 2', '10% 20% 40%', etc.) Returns ------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/yaxis/_minor.py b/packages/python/plotly/plotly/graph_objs/layout/yaxis/_minor.py index d416e4cac48..c48c590f843 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/yaxis/_minor.py +++ b/packages/python/plotly/plotly/graph_objs/layout/yaxis/_minor.py @@ -132,11 +132,11 @@ def griddash(self): "longdashdot") or a dash length list in px (eg "5px,10px,2px,2px"). - The 'griddash' property is a string and must be specified as: - - One of the following strings: - ['solid', 'dot', 'dash', 'longdash', 'dashdot', - 'longdashdot'] - - A number that will be converted to a string + The 'griddash' property is an enumeration that may be specified as: + - One of the following dash styles: + ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot'] + - A string containing a dash length list in pixels or percentages + (e.g. '5px 10px 2px 2px', '5, 10, 2, 2', '10% 20% 40%', etc.) Returns ------- diff --git a/packages/python/plotly/plotly/graph_objs/scattersmith/_line.py b/packages/python/plotly/plotly/graph_objs/scattersmith/_line.py index 1cdcb7aae1b..c4f772e9887 100644 --- a/packages/python/plotly/plotly/graph_objs/scattersmith/_line.py +++ b/packages/python/plotly/plotly/graph_objs/scattersmith/_line.py @@ -79,11 +79,11 @@ def dash(self): "longdashdot") or a dash length list in px (eg "5px,10px,2px,2px"). - The 'dash' property is a string and must be specified as: - - One of the following strings: - ['solid', 'dot', 'dash', 'longdash', 'dashdot', - 'longdashdot'] - - A number that will be converted to a string + The 'dash' property is an enumeration that may be specified as: + - One of the following dash styles: + ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot'] + - A string containing a dash length list in pixels or percentages + (e.g. '5px 10px 2px 2px', '5, 10, 2, 2', '10% 20% 40%', etc.) Returns ------- diff --git a/packages/python/plotly/plotly/graph_objs/waterfall/connector/_line.py b/packages/python/plotly/plotly/graph_objs/waterfall/connector/_line.py index 37bfa9068aa..28924db8643 100644 --- a/packages/python/plotly/plotly/graph_objs/waterfall/connector/_line.py +++ b/packages/python/plotly/plotly/graph_objs/waterfall/connector/_line.py @@ -79,11 +79,11 @@ def dash(self): "longdashdot") or a dash length list in px (eg "5px,10px,2px,2px"). - The 'dash' property is a string and must be specified as: - - One of the following strings: - ['solid', 'dot', 'dash', 'longdash', 'dashdot', - 'longdashdot'] - - A number that will be converted to a string + The 'dash' property is an enumeration that may be specified as: + - One of the following dash styles: + ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot'] + - A string containing a dash length list in pixels or percentages + (e.g. '5px 10px 2px 2px', '5, 10, 2, 2', '10% 20% 40%', etc.) Returns ------- diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_griddash.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_griddash.py index 8b05ca30568..e5aa719bebf 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_griddash.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_griddash.py @@ -1,7 +1,7 @@ import _plotly_utils.basevalidators -class GriddashValidator(_plotly_utils.basevalidators.StringValidator): +class GriddashValidator(_plotly_utils.basevalidators.DashValidator): def __init__(self, plotly_name="griddash", parent_name="carpet.aaxis", **kwargs): super(GriddashValidator, self).__init__( plotly_name=plotly_name, diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/_minorgriddash.py b/packages/python/plotly/plotly/validators/carpet/aaxis/_minorgriddash.py index a47b91cb45e..e6b36727aac 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/_minorgriddash.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/_minorgriddash.py @@ -1,7 +1,7 @@ import _plotly_utils.basevalidators -class MinorgriddashValidator(_plotly_utils.basevalidators.StringValidator): +class MinorgriddashValidator(_plotly_utils.basevalidators.DashValidator): def __init__( self, plotly_name="minorgriddash", parent_name="carpet.aaxis", **kwargs ): diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_griddash.py b/packages/python/plotly/plotly/validators/carpet/baxis/_griddash.py index ebcdd9d5ebc..da58807f1f6 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_griddash.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_griddash.py @@ -1,7 +1,7 @@ import _plotly_utils.basevalidators -class GriddashValidator(_plotly_utils.basevalidators.StringValidator): +class GriddashValidator(_plotly_utils.basevalidators.DashValidator): def __init__(self, plotly_name="griddash", parent_name="carpet.baxis", **kwargs): super(GriddashValidator, self).__init__( plotly_name=plotly_name, diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/_minorgriddash.py b/packages/python/plotly/plotly/validators/carpet/baxis/_minorgriddash.py index aa400657f13..24593073603 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/_minorgriddash.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/_minorgriddash.py @@ -1,7 +1,7 @@ import _plotly_utils.basevalidators -class MinorgriddashValidator(_plotly_utils.basevalidators.StringValidator): +class MinorgriddashValidator(_plotly_utils.basevalidators.DashValidator): def __init__( self, plotly_name="minorgriddash", parent_name="carpet.baxis", **kwargs ): diff --git a/packages/python/plotly/plotly/validators/funnel/connector/line/_dash.py b/packages/python/plotly/plotly/validators/funnel/connector/line/_dash.py index 52f02a88468..ade52e50703 100644 --- a/packages/python/plotly/plotly/validators/funnel/connector/line/_dash.py +++ b/packages/python/plotly/plotly/validators/funnel/connector/line/_dash.py @@ -1,7 +1,7 @@ import _plotly_utils.basevalidators -class DashValidator(_plotly_utils.basevalidators.StringValidator): +class DashValidator(_plotly_utils.basevalidators.DashValidator): def __init__( self, plotly_name="dash", parent_name="funnel.connector.line", **kwargs ): diff --git a/packages/python/plotly/plotly/validators/layout/geo/lataxis/_griddash.py b/packages/python/plotly/plotly/validators/layout/geo/lataxis/_griddash.py index e37f36453f5..848516d9898 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/lataxis/_griddash.py +++ b/packages/python/plotly/plotly/validators/layout/geo/lataxis/_griddash.py @@ -1,7 +1,7 @@ import _plotly_utils.basevalidators -class GriddashValidator(_plotly_utils.basevalidators.StringValidator): +class GriddashValidator(_plotly_utils.basevalidators.DashValidator): def __init__( self, plotly_name="griddash", parent_name="layout.geo.lataxis", **kwargs ): diff --git a/packages/python/plotly/plotly/validators/layout/geo/lonaxis/_griddash.py b/packages/python/plotly/plotly/validators/layout/geo/lonaxis/_griddash.py index 2b1913a8421..daad35c60f2 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/lonaxis/_griddash.py +++ b/packages/python/plotly/plotly/validators/layout/geo/lonaxis/_griddash.py @@ -1,7 +1,7 @@ import _plotly_utils.basevalidators -class GriddashValidator(_plotly_utils.basevalidators.StringValidator): +class GriddashValidator(_plotly_utils.basevalidators.DashValidator): def __init__( self, plotly_name="griddash", parent_name="layout.geo.lonaxis", **kwargs ): diff --git a/packages/python/plotly/plotly/validators/layout/newshape/line/_dash.py b/packages/python/plotly/plotly/validators/layout/newshape/line/_dash.py index fd30b85a5ac..8cc38e9dfed 100644 --- a/packages/python/plotly/plotly/validators/layout/newshape/line/_dash.py +++ b/packages/python/plotly/plotly/validators/layout/newshape/line/_dash.py @@ -1,7 +1,7 @@ import _plotly_utils.basevalidators -class DashValidator(_plotly_utils.basevalidators.StringValidator): +class DashValidator(_plotly_utils.basevalidators.DashValidator): def __init__( self, plotly_name="dash", parent_name="layout.newshape.line", **kwargs ): diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_griddash.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_griddash.py index 918e28119a8..b5c0d236df4 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_griddash.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/_griddash.py @@ -1,7 +1,7 @@ import _plotly_utils.basevalidators -class GriddashValidator(_plotly_utils.basevalidators.StringValidator): +class GriddashValidator(_plotly_utils.basevalidators.DashValidator): def __init__( self, plotly_name="griddash", parent_name="layout.polar.angularaxis", **kwargs ): diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_griddash.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_griddash.py index b6800eede8f..004ade41b00 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_griddash.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/_griddash.py @@ -1,7 +1,7 @@ import _plotly_utils.basevalidators -class GriddashValidator(_plotly_utils.basevalidators.StringValidator): +class GriddashValidator(_plotly_utils.basevalidators.DashValidator): def __init__( self, plotly_name="griddash", parent_name="layout.polar.radialaxis", **kwargs ): diff --git a/packages/python/plotly/plotly/validators/layout/shape/line/_dash.py b/packages/python/plotly/plotly/validators/layout/shape/line/_dash.py index 91746491b6d..86b5e089a8d 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/line/_dash.py +++ b/packages/python/plotly/plotly/validators/layout/shape/line/_dash.py @@ -1,7 +1,7 @@ import _plotly_utils.basevalidators -class DashValidator(_plotly_utils.basevalidators.StringValidator): +class DashValidator(_plotly_utils.basevalidators.DashValidator): def __init__(self, plotly_name="dash", parent_name="layout.shape.line", **kwargs): super(DashValidator, self).__init__( plotly_name=plotly_name, diff --git a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_griddash.py b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_griddash.py index b550d79fb21..81af5c4040f 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_griddash.py +++ b/packages/python/plotly/plotly/validators/layout/smith/imaginaryaxis/_griddash.py @@ -1,7 +1,7 @@ import _plotly_utils.basevalidators -class GriddashValidator(_plotly_utils.basevalidators.StringValidator): +class GriddashValidator(_plotly_utils.basevalidators.DashValidator): def __init__( self, plotly_name="griddash", parent_name="layout.smith.imaginaryaxis", **kwargs ): diff --git a/packages/python/plotly/plotly/validators/layout/smith/realaxis/_griddash.py b/packages/python/plotly/plotly/validators/layout/smith/realaxis/_griddash.py index ec9211a2075..a5a842d5a6e 100644 --- a/packages/python/plotly/plotly/validators/layout/smith/realaxis/_griddash.py +++ b/packages/python/plotly/plotly/validators/layout/smith/realaxis/_griddash.py @@ -1,7 +1,7 @@ import _plotly_utils.basevalidators -class GriddashValidator(_plotly_utils.basevalidators.StringValidator): +class GriddashValidator(_plotly_utils.basevalidators.DashValidator): def __init__( self, plotly_name="griddash", parent_name="layout.smith.realaxis", **kwargs ): diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_griddash.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_griddash.py index 7d3bd9d3a95..f8df3bd1aa2 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_griddash.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/_griddash.py @@ -1,7 +1,7 @@ import _plotly_utils.basevalidators -class GriddashValidator(_plotly_utils.basevalidators.StringValidator): +class GriddashValidator(_plotly_utils.basevalidators.DashValidator): def __init__( self, plotly_name="griddash", parent_name="layout.ternary.aaxis", **kwargs ): diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_griddash.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_griddash.py index 3d5b2c81126..5212538f670 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/_griddash.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/_griddash.py @@ -1,7 +1,7 @@ import _plotly_utils.basevalidators -class GriddashValidator(_plotly_utils.basevalidators.StringValidator): +class GriddashValidator(_plotly_utils.basevalidators.DashValidator): def __init__( self, plotly_name="griddash", parent_name="layout.ternary.baxis", **kwargs ): diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_griddash.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_griddash.py index 4edb8b927d6..6336c362d29 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/_griddash.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/_griddash.py @@ -1,7 +1,7 @@ import _plotly_utils.basevalidators -class GriddashValidator(_plotly_utils.basevalidators.StringValidator): +class GriddashValidator(_plotly_utils.basevalidators.DashValidator): def __init__( self, plotly_name="griddash", parent_name="layout.ternary.caxis", **kwargs ): diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_griddash.py b/packages/python/plotly/plotly/validators/layout/xaxis/_griddash.py index 105f202b346..db0cb6e9912 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_griddash.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_griddash.py @@ -1,7 +1,7 @@ import _plotly_utils.basevalidators -class GriddashValidator(_plotly_utils.basevalidators.StringValidator): +class GriddashValidator(_plotly_utils.basevalidators.DashValidator): def __init__(self, plotly_name="griddash", parent_name="layout.xaxis", **kwargs): super(GriddashValidator, self).__init__( plotly_name=plotly_name, diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/_spikedash.py b/packages/python/plotly/plotly/validators/layout/xaxis/_spikedash.py index 65105e23ed4..b2a425bbe12 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/_spikedash.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/_spikedash.py @@ -1,7 +1,7 @@ import _plotly_utils.basevalidators -class SpikedashValidator(_plotly_utils.basevalidators.StringValidator): +class SpikedashValidator(_plotly_utils.basevalidators.DashValidator): def __init__(self, plotly_name="spikedash", parent_name="layout.xaxis", **kwargs): super(SpikedashValidator, self).__init__( plotly_name=plotly_name, diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/minor/_griddash.py b/packages/python/plotly/plotly/validators/layout/xaxis/minor/_griddash.py index 8cea71f458c..49893ff1574 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/minor/_griddash.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/minor/_griddash.py @@ -1,7 +1,7 @@ import _plotly_utils.basevalidators -class GriddashValidator(_plotly_utils.basevalidators.StringValidator): +class GriddashValidator(_plotly_utils.basevalidators.DashValidator): def __init__( self, plotly_name="griddash", parent_name="layout.xaxis.minor", **kwargs ): diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_griddash.py b/packages/python/plotly/plotly/validators/layout/yaxis/_griddash.py index 86c04db2e7b..3bfd34783b5 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_griddash.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_griddash.py @@ -1,7 +1,7 @@ import _plotly_utils.basevalidators -class GriddashValidator(_plotly_utils.basevalidators.StringValidator): +class GriddashValidator(_plotly_utils.basevalidators.DashValidator): def __init__(self, plotly_name="griddash", parent_name="layout.yaxis", **kwargs): super(GriddashValidator, self).__init__( plotly_name=plotly_name, diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/_spikedash.py b/packages/python/plotly/plotly/validators/layout/yaxis/_spikedash.py index 70a5c97ac98..8f2ae4012d1 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/_spikedash.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/_spikedash.py @@ -1,7 +1,7 @@ import _plotly_utils.basevalidators -class SpikedashValidator(_plotly_utils.basevalidators.StringValidator): +class SpikedashValidator(_plotly_utils.basevalidators.DashValidator): def __init__(self, plotly_name="spikedash", parent_name="layout.yaxis", **kwargs): super(SpikedashValidator, self).__init__( plotly_name=plotly_name, diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/minor/_griddash.py b/packages/python/plotly/plotly/validators/layout/yaxis/minor/_griddash.py index 5f3a0196035..1ca8429bf73 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/minor/_griddash.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/minor/_griddash.py @@ -1,7 +1,7 @@ import _plotly_utils.basevalidators -class GriddashValidator(_plotly_utils.basevalidators.StringValidator): +class GriddashValidator(_plotly_utils.basevalidators.DashValidator): def __init__( self, plotly_name="griddash", parent_name="layout.yaxis.minor", **kwargs ): diff --git a/packages/python/plotly/plotly/validators/scattersmith/line/_dash.py b/packages/python/plotly/plotly/validators/scattersmith/line/_dash.py index f6bc53515bc..d6a30b773e6 100644 --- a/packages/python/plotly/plotly/validators/scattersmith/line/_dash.py +++ b/packages/python/plotly/plotly/validators/scattersmith/line/_dash.py @@ -1,7 +1,7 @@ import _plotly_utils.basevalidators -class DashValidator(_plotly_utils.basevalidators.StringValidator): +class DashValidator(_plotly_utils.basevalidators.DashValidator): def __init__(self, plotly_name="dash", parent_name="scattersmith.line", **kwargs): super(DashValidator, self).__init__( plotly_name=plotly_name, diff --git a/packages/python/plotly/plotly/validators/waterfall/connector/line/_dash.py b/packages/python/plotly/plotly/validators/waterfall/connector/line/_dash.py index 84dded5ec32..ed8535717e2 100644 --- a/packages/python/plotly/plotly/validators/waterfall/connector/line/_dash.py +++ b/packages/python/plotly/plotly/validators/waterfall/connector/line/_dash.py @@ -1,7 +1,7 @@ import _plotly_utils.basevalidators -class DashValidator(_plotly_utils.basevalidators.StringValidator): +class DashValidator(_plotly_utils.basevalidators.DashValidator): def __init__( self, plotly_name="dash", parent_name="waterfall.connector.line", **kwargs ):