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 befea7d commit d578ab4Copy full SHA for d578ab4
plotly/express/_core.py
@@ -1051,8 +1051,11 @@ def apply_default_cascade(args, constructor=None):
1051
trace_data.marker.color
1052
for trace_data in trace_data_list
1053
if hasattr(trace_data, "marker")
1054
+ and hasattr(trace_data.marker, "color")
1055
]
- if not args["color_discrete_sequence"] or not any(args["color_discrete_sequence"]):
1056
+ if not args["color_discrete_sequence"] or not any(
1057
+ args["color_discrete_sequence"]
1058
+ ):
1059
args["color_discrete_sequence"] = None
1060
# fallback to layout.colorway if trace-specific colors not available
1061
if args["color_discrete_sequence"] is None and args["template"].layout.colorway:
0 commit comments