Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0dd2f39

Browse files
fix tests
1 parent 9d6360a commit 0dd2f39

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

packages/python/plotly/plotly/express/_chart_types.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1320,4 +1320,3 @@ def funnel_area(
13201320

13211321

13221322
funnel_area.__doc__ = make_docstring(funnel_area)
1323-

packages/python/plotly/plotly/express/_core.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,18 +1045,17 @@ def infer_config(args, constructor, trace_patch):
10451045
attrs.append("color")
10461046
args["color_is_continuous"] = False
10471047
else:
1048-
if constructor not in [go.Pie, go.Funnelarea]:
1049-
grouped_attrs.append("marker.color")
1048+
grouped_attrs.append("marker.color")
10501049
elif "line_group" in args or constructor == go.Histogram2dContour:
10511050
grouped_attrs.append("line.color")
1052-
elif constructor not in [go.Pie, go.Funnelarea]:
1053-
grouped_attrs.append("marker.color")
1054-
else:
1051+
elif constructor in [go.Pie, go.Funnelarea]:
10551052
attrs.append("color")
1056-
if constructor in [go.Pie, go.Funnelarea]:
1053+
if args["color"]:
10571054
if args["hover_data"] is None:
10581055
args["hover_data"] = []
10591056
args["hover_data"].append(args["color"])
1057+
else:
1058+
grouped_attrs.append("marker.color")
10601059

10611060
show_colorbar = bool(
10621061
"color" in attrs

0 commit comments

Comments
 (0)