Skip to content

Commit

Permalink
Fix gantt colorbar tests
Browse files Browse the repository at this point in the history
  • Loading branch information
omridanan committed Aug 14, 2018
1 parent 676b22d commit c5a324c
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions plotly/tests/test_optional/test_tools/test_figure_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -1349,7 +1349,25 @@ def test_gannt_groups_and_descriptions(self):
)

exp_gantt_chart = {
'data': [{'marker': {'color': 'white'},
'data': [{'hoverinfo': 'none',
'marker': {'color': 'rgb(220, 0, 0)', 'size': 1},
'name': 'TA',
'showlegend': True,
'x': ['2009-04-20', '2009-04-20'],
'y': [0, 0]},
{'hoverinfo': 'none',
'marker': {'color': 'rgb(170, 14, 200)', 'size': 1},
'name': 'TB',
'showlegend': True,
'x': ['2009-04-20', '2009-04-20'],
'y': [1, 1]},
{'hoverinfo': 'none',
'marker': {'color': 'rgb(255, 230, 41)', 'size': 1},
'name': 'TC',
'showlegend': True,
'x': ['2009-04-20', '2009-04-20'],
'y': [2, 2]},
{'marker': {'color': 'white'},
'name': '',
'text': 'Task A - 1',
'x': ['2008-10-05', '2009-04-15'],
Expand All @@ -1373,24 +1391,6 @@ def test_gannt_groups_and_descriptions(self):
'name': '',
'text': 'Task A - 2',
'x': ['2009-04-20', '2009-05-30'],
'y': [2, 2]},
{'hoverinfo': 'none',
'marker': {'color': 'rgb(220, 0, 0)', 'size': 1},
'name': 'TA',
'showlegend': True,
'x': ['2009-04-20', '2009-04-20'],
'y': [0, 0]},
{'hoverinfo': 'none',
'marker': {'color': 'rgb(170, 14, 200)', 'size': 1},
'name': 'TB',
'showlegend': True,
'x': ['2009-04-20', '2009-04-20'],
'y': [1, 1]},
{'hoverinfo': 'none',
'marker': {'color': 'rgb(255, 230, 41)', 'size': 1},
'name': 'TC',
'showlegend': True,
'x': ['2009-04-20', '2009-04-20'],
'y': [2, 2]}],
'layout': {'height': 600,
'hovermode': 'closest',
Expand Down

0 comments on commit c5a324c

Please sign in to comment.