Skip to content

Commit c5a324c

Browse files
committed
Fix gantt colorbar tests
1 parent 676b22d commit c5a324c

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

plotly/tests/test_optional/test_tools/test_figure_factory.py

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1349,7 +1349,25 @@ def test_gannt_groups_and_descriptions(self):
13491349
)
13501350

13511351
exp_gantt_chart = {
1352-
'data': [{'marker': {'color': 'white'},
1352+
'data': [{'hoverinfo': 'none',
1353+
'marker': {'color': 'rgb(220, 0, 0)', 'size': 1},
1354+
'name': 'TA',
1355+
'showlegend': True,
1356+
'x': ['2009-04-20', '2009-04-20'],
1357+
'y': [0, 0]},
1358+
{'hoverinfo': 'none',
1359+
'marker': {'color': 'rgb(170, 14, 200)', 'size': 1},
1360+
'name': 'TB',
1361+
'showlegend': True,
1362+
'x': ['2009-04-20', '2009-04-20'],
1363+
'y': [1, 1]},
1364+
{'hoverinfo': 'none',
1365+
'marker': {'color': 'rgb(255, 230, 41)', 'size': 1},
1366+
'name': 'TC',
1367+
'showlegend': True,
1368+
'x': ['2009-04-20', '2009-04-20'],
1369+
'y': [2, 2]},
1370+
{'marker': {'color': 'white'},
13531371
'name': '',
13541372
'text': 'Task A - 1',
13551373
'x': ['2008-10-05', '2009-04-15'],
@@ -1373,24 +1391,6 @@ def test_gannt_groups_and_descriptions(self):
13731391
'name': '',
13741392
'text': 'Task A - 2',
13751393
'x': ['2009-04-20', '2009-05-30'],
1376-
'y': [2, 2]},
1377-
{'hoverinfo': 'none',
1378-
'marker': {'color': 'rgb(220, 0, 0)', 'size': 1},
1379-
'name': 'TA',
1380-
'showlegend': True,
1381-
'x': ['2009-04-20', '2009-04-20'],
1382-
'y': [0, 0]},
1383-
{'hoverinfo': 'none',
1384-
'marker': {'color': 'rgb(170, 14, 200)', 'size': 1},
1385-
'name': 'TB',
1386-
'showlegend': True,
1387-
'x': ['2009-04-20', '2009-04-20'],
1388-
'y': [1, 1]},
1389-
{'hoverinfo': 'none',
1390-
'marker': {'color': 'rgb(255, 230, 41)', 'size': 1},
1391-
'name': 'TC',
1392-
'showlegend': True,
1393-
'x': ['2009-04-20', '2009-04-20'],
13941394
'y': [2, 2]}],
13951395
'layout': {'height': 600,
13961396
'hovermode': 'closest',

0 commit comments

Comments
 (0)