Skip to content

Commit 3b915ff

Browse files
committed
Merge branch 'v4_integration' of github.com:plotly/plotly.py into v4_integration
2 parents fbf7c15 + 9b150cc commit 3b915ff

File tree

4 files changed

+274
-267
lines changed

4 files changed

+274
-267
lines changed

packages/python/plotly/plotly/figure_factory/_gantt.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ def gantt_colorscale(
412412
)
413413
layout["shapes"] = tasks
414414

415-
fig = dict(data=data, layout=layout)
415+
fig = graph_objs.Figure(data=data, layout=layout)
416416
return fig
417417

418418

@@ -567,7 +567,7 @@ def gantt_dict(
567567
)
568568
layout["shapes"] = tasks
569569

570-
fig = dict(data=data, layout=layout)
570+
fig = graph_objs.Figure(data=data, layout=layout)
571571
return fig
572572

573573

@@ -582,7 +582,7 @@ def create_gantt(
582582
showgrid_x=False,
583583
showgrid_y=False,
584584
height=600,
585-
width=900,
585+
width=800,
586586
tasks=None,
587587
task_names=None,
588588
data=None,

packages/python/plotly/plotly/tests/test_optional/test_figure_factory/test_figure_factory.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2090,7 +2090,7 @@ def test_df_dataframe_all_args(self):
20902090
],
20912091
"showlegend": False,
20922092
"title": {"text": "Gantt Chart"},
2093-
"width": 900,
2093+
"width": 800,
20942094
"xaxis": {
20952095
"rangeselector": {
20962096
"buttons": [

0 commit comments

Comments
 (0)