Skip to content

Commit

Permalink
Fixed build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
lucafs committed Dec 9, 2021
1 parent ccaf54f commit 1064a12
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/python/plotly/plotly/express/_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2146,9 +2146,9 @@ def make_figure(args, constructor, trace_patch=None, layout_patch=None):
layout_patch["legend"] = dict(tracegroupgap=0)
if trace_name_labels:
layout_patch["legend"]["title_text"] = ", ".join(trace_name_labels)
elif('showlegend' in trace_patch.keys()):
if(trace_patch['showlegend'] and constructor == go.Pie):
layout_patch["legend"]["title_text"] = args['names']
elif "showlegend" in trace_patch.keys():
if trace_patch["showlegend"] and constructor == go.Pie:
layout_patch["legend"]["title_text"] = args["names"]
if args["title"]:
layout_patch["title_text"] = args["title"]
elif args["template"].layout.margin.t is None:
Expand Down

0 comments on commit 1064a12

Please sign in to comment.