We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 665595d commit af43f68Copy full SHA for af43f68
plotly/_subplots.py
@@ -1062,9 +1062,11 @@ def _init_subplot_domain(x_domain, y_domain):
1062
1063
1064
def _subplot_type_for_trace_type(trace_type):
1065
- from plotly.validators import DataValidator
+ from plotly.validator_cache import ValidatorCache
1066
+ DataValidator = ValidatorCache.get_validator("", "data")
1067
+ # from plotly.validators import DataValidator
1068
- trace_validator = DataValidator()
1069
+ trace_validator = DataValidator
1070
if trace_type in trace_validator.class_strs_map:
1071
# subplot_type is a trace name, find the subplot type for trace
1072
trace = trace_validator.validate_coerce([{"type": trace_type}])[0]
0 commit comments