Graph objects fig.data.y update does not work as expected for the gantt charts

I am trying to have the gantt chart with 2 gantt resources, however I want these gantt resources to be split on y axis separated more than required and hence I tried to update the y axis of the fig data using something like below -
fig_pdx_gantt_multiple.data[3].y = (50,50,50,50,50,50,50,50,50,50,
50,50,50,50,50,50,50,50,50,50,
50,50,50,50,50,50,50,50,50,50,
50,50,50,50,50,50,50,50,50,50,
50,50,50,50,50,50,50,50,50,50,
50,50,50,50,50,50,50,50,50,50,
50,50,50,50,50,50,50,50,50,50,
50,50,50,50,50,50,50,50,50,50,
50,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0)

My code is as below -
import plotly.express as px
import plotly.graph_objs as go
from plotly.offline import iplot
fig_pdx_gantt_multiple = plt.figure(figsize=(20,10))
fig_pdx_gantt_multiple = ff.create_gantt(df_pdx_multiple, colors=colors, index_col=‘Resource’, show_colorbar=False,
group_tasks=True,show_hover_fill=True,title=‘TimeSpace Diagram only changes in v4_currState temp id = 745’,
showgrid_x=True, showgrid_y=True,bar_width=10, height = 500)
fig_pdx_gantt_multiple[‘layout’][‘yaxis’].update(ticktext= [‘MarketStreet’ , ‘Broadway’])
fig_pdx_gantt_multiple[‘layout’][‘yaxis’].update(range=[-300,200])
fig_pdx_gantt_multiple.update_xaxes(rangeslider_visible=True)
fig_pdx_gantt_multiple.update_layout(showlegend=True)
fig_pdx_gantt_multiple.data[3].y = (50,50,50,50,50,50,50,50,50,50,
50,50,50,50,50,50,50,50,50,50,
50,50,50,50,50,50,50,50,50,50,
50,50,50,50,50,50,50,50,50,50,
50,50,50,50,50,50,50,50,50,50,
50,50,50,50,50,50,50,50,50,50,
50,50,50,50,50,50,50,50,50,50,
50,50,50,50,50,50,50,50,50,50,
50,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0)
fig_pdx_gantt_multiple.data[4].y = (50,50,50,50,50,50,50,50,50,50,
50,50,50,50,50,50,50,50,50,50,
50,50,50,50,50,50,50,50,50,50,
50,50,50,50,50,50,50,50,50,50,
50,50,50,50,50,50,50,50,50,50,
50,50,50,50,50,50,50,50,50,50,
50,50,50,50,50,50,50,50,50,50,
50,50,50,50,50,50,50,50,50,50,
50,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0)
fig_pdx_gantt_multiple.data[5].y = (50,50,50,50,50,50,50,50,50,50,
50,50,50,50,50,50,50,50,50,50,
50,50,50,50,50,50,50,50,50,50,
50,50,50,50,50,50,50,50,50,50,
50,50,50,50,50,50,50,50,50,50,
50,50,50,50,50,50,50,50,50,50,
50,50,50,50,50,50,50,50,50,50,
50,50,50,50,50,50,50,50,50,50,
50,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0)
for tr in fig_pdx.data:
fig_pdx_gantt_multiple.add_trace(tr)
for tr in fig_pdx_street.data:
fig_pdx_gantt_multiple.add_trace(tr)
fig_pdx_gantt_multiple.show()

Currently I can see -

Required graph is something like this - (this is some data hack I did to achieve this)

Please let me know how can I achieve the second graph without hacking with data…
Thanks

@empet - PLEASE let me know if you could help me in someway or point me to something that can be helpful to achieve this.
Really appreciate your help and time.
Thanks

If you’d like us to be able to help you, please post a fully reproducible example including your data frame. Right now it’s not possible for anyone to reproduce either of your plots. See How to Get your Questions Answered on the Plotly Forum for more info :slight_smile:

Hi Nicolas,

Please find the sample data below. I am unable to attach the csv file.
Please let me know if you need more information for the same. Appreciate your time and effort.
Thank you.
The dataset has 2 tasks that need to be seperated on y axis with some required distance say 34108 task is at 0 and 34109 task is at 50. Currently they are overlapping for me and i tried to update the data but haven’t see any change, might be i’m missing on something.

Task Start Finish Resource
0 34108 2020-06-03 23:21:02 2020-06-03 23:21:31 3
1 34108 2020-06-03 23:21:31 2020-06-03 23:21:56 6
2 34108 2020-06-03 23:21:56 2020-06-03 23:21:59 8
3 34108 2020-06-03 23:21:59 2020-06-03 23:22:28 3
4 34108 2020-06-03 23:22:28 2020-06-03 23:22:54 6
5 34108 2020-06-03 23:22:54 2020-06-03 23:22:57 8
6 34108 2020-06-03 23:22:57 2020-06-03 23:23:26 3
7 34108 2020-06-03 23:23:26 2020-06-03 23:23:53 6
8 34108 2020-06-03 23:23:53 2020-06-03 23:23:56 8
9 34108 2020-06-03 23:23:56 2020-06-03 23:24:25 3
10 34108 2020-06-03 23:24:25 2020-06-03 23:24:50 6
11 34108 2020-06-03 23:24:50 2020-06-03 23:24:53 8
12 34108 2020-06-03 23:24:53 2020-06-03 23:25:22 3
13 34108 2020-06-03 23:25:22 2020-06-03 23:25:48 6
14 34108 2020-06-03 23:25:48 2020-06-03 23:25:51 8
15 34108 2020-06-03 23:25:51 2020-06-03 23:26:20 3
16 34108 2020-06-03 23:26:20 2020-06-03 23:26:45 6
17 34108 2020-06-03 23:26:45 2020-06-03 23:26:48 8
18 34108 2020-06-03 23:26:48 2020-06-03 23:27:17 3
19 34108 2020-06-03 23:27:17 2020-06-03 23:27:46 6
20 34108 2020-06-03 23:27:46 2020-06-03 23:27:49 8
21 34108 2020-06-03 23:27:49 2020-06-03 23:28:19 3
22 34108 2020-06-03 23:28:19 2020-06-03 23:28:46 6
23 34108 2020-06-03 23:28:46 2020-06-03 23:28:49 8
24 34108 2020-06-03 23:28:49 2020-06-03 23:29:17 3
25 34108 2020-06-03 23:29:17 2020-06-03 23:29:43 6
26 34108 2020-06-03 23:29:43 2020-06-03 23:29:46 8
27 34108 2020-06-03 23:29:46 2020-06-03 23:30:15 3
28 34108 2020-06-03 23:30:15 2020-06-03 23:30:40 6
29 34108 2020-06-03 23:30:40 2020-06-03 23:30:43 8
30 34108 2020-06-03 23:30:43 2020-06-03 23:31:12 3
31 34108 2020-06-03 23:31:12 2020-06-03 23:31:37 6
32 34108 2020-06-03 23:31:37 2020-06-03 23:31:40 8
33 34108 2020-06-03 23:31:40 2020-06-03 23:32:09 3
34 34108 2020-06-03 23:32:09 2020-06-03 23:32:34 6
35 34108 2020-06-03 23:32:34 2020-06-03 23:32:37 8
36 34108 2020-06-03 23:32:37 2020-06-03 23:33:06 3
37 34108 2020-06-03 23:33:06 2020-06-03 23:33:32 6
38 34108 2020-06-03 23:33:32 2020-06-03 23:33:35 8
39 34108 2020-06-03 23:33:35 2020-06-03 23:34:03 3
40 34108 2020-06-03 23:34:03 2020-06-03 23:34:29 6
41 34108 2020-06-03 23:34:29 2020-06-03 23:34:32 8
42 34108 2020-06-03 23:34:32 2020-06-03 23:35:00 3
43 34108 2020-06-03 23:35:00 2020-06-03 23:35:26 6
44 34108 2020-06-03 23:35:26 2020-06-03 23:35:29 8
45 34108 2020-06-03 23:35:29 2020-06-03 23:35:58 3
46 34108 2020-06-03 23:35:58 2020-06-03 23:36:23 6
47 34108 2020-06-03 23:36:23 2020-06-03 23:36:26 8
48 34108 2020-06-03 23:36:26 2020-06-03 23:36:55 3
49 34108 2020-06-03 23:36:55 2020-06-03 23:37:21 6
50 34108 2020-06-03 23:37:21 2020-06-03 23:37:24 8
51 34108 2020-06-03 23:37:24 2020-06-03 23:37:52 3
52 34108 2020-06-03 23:37:52 2020-06-03 23:38:18 6
53 34108 2020-06-03 23:38:18 2020-06-03 23:38:21 8
54 34108 2020-06-03 23:38:21 2020-06-03 23:38:50 3
55 34108 2020-06-03 23:38:50 2020-06-03 23:39:15 6
56 34108 2020-06-03 23:39:15 2020-06-03 23:39:18 8
57 34108 2020-06-03 23:39:18 2020-06-03 23:39:47 3
58 34108 2020-06-03 23:39:47 2020-06-03 23:40:13 6
59 34108 2020-06-03 23:40:13 2020-06-03 23:40:16 8
60 34108 2020-06-03 23:40:16 2020-06-03 23:40:44 3
61 34108 2020-06-03 23:40:44 2020-06-03 23:41:10 6
62 34108 2020-06-03 23:41:10 2020-06-03 23:41:13 8
63 34108 2020-06-03 23:41:13 2020-06-03 23:41:42 3
64 34108 2020-06-03 23:41:42 2020-06-03 23:42:07 6
65 34108 2020-06-03 23:42:07 2020-06-03 23:42:10 8
66 34108 2020-06-03 23:42:10 2020-06-03 23:42:39 3
67 34108 2020-06-03 23:42:39 2020-06-03 23:43:05 6
68 34108 2020-06-03 23:43:05 2020-06-03 23:43:08 8
69 34108 2020-06-03 23:43:08 2020-06-03 23:43:36 3
70 34108 2020-06-03 23:43:36 2020-06-03 23:44:02 6
71 34108 2020-06-03 23:44:02 2020-06-03 23:44:05 8
72 34108 2020-06-03 23:44:05 2020-06-03 23:44:34 3
73 34108 2020-06-03 23:44:34 2020-06-03 23:44:59 6
74 34108 2020-06-03 23:44:59 2020-06-03 23:45:02 8
75 34108 2020-06-03 23:45:02 2020-06-03 23:45:31 3
76 34108 2020-06-03 23:45:31 2020-06-03 23:45:57 6
77 34108 2020-06-03 23:45:57 2020-06-03 23:46:00 8
78 34108 2020-06-03 23:46:00 2020-06-03 23:46:28 3
79 34108 2020-06-03 23:46:28 2020-06-03 23:46:54 6
80 34108 2020-06-03 23:46:54 2020-06-03 23:46:57 8
81 34108 2020-06-03 23:46:57 2020-06-03 23:47:25 3
82 34108 2020-06-03 23:47:25 2020-06-03 23:47:51 6
83 34108 2020-06-03 23:47:51 2020-06-03 23:47:54 8
84 34108 2020-06-03 23:47:54 2020-06-03 23:48:23 3
85 34108 2020-06-03 23:48:23 2020-06-03 23:48:48 6
86 34108 2020-06-03 23:48:48 2020-06-03 23:48:51 8
87 34108 2020-06-03 23:48:51 2020-06-03 23:49:20 3
88 34108 2020-06-03 23:49:20 2020-06-03 23:49:45 6
89 34108 2020-06-03 23:49:45 2020-06-03 23:49:48 8
90 34108 2020-06-03 23:49:48 2020-06-03 23:50:17 3
91 34108 2020-06-03 23:50:17 2020-06-03 23:50:43 6
92 34108 2020-06-03 23:50:43 2020-06-03 23:50:46 8
93 34108 2020-06-03 23:50:46 2020-06-03 23:51:14 3
94 34108 2020-06-03 23:51:14 2020-06-03 23:51:40 6
95 34108 2020-06-03 23:51:40 2020-06-03 23:51:43 8
96 34108 2020-06-03 23:51:43 2020-06-03 23:52:12 3
97 34108 2020-06-03 23:52:12 2020-06-03 23:52:37 6
98 34108 2020-06-03 23:52:37 2020-06-03 23:52:41 8
99 34108 2020-06-03 23:52:41 2020-06-03 23:53:09 3
100 34108 2020-06-03 23:53:09 2020-06-03 23:53:35 6
210 34109 2020-06-03 23:21:02 2020-06-03 23:21:31 3
211 34109 2020-06-03 23:21:31 2020-06-03 23:21:56 6
212 34109 2020-06-03 23:21:56 2020-06-03 23:21:59 8
213 34109 2020-06-03 23:21:59 2020-06-03 23:22:28 3
214 34109 2020-06-03 23:22:28 2020-06-03 23:22:54 6
215 34109 2020-06-03 23:22:54 2020-06-03 23:22:57 8
216 34109 2020-06-03 23:22:57 2020-06-03 23:23:26 3
217 34109 2020-06-03 23:23:26 2020-06-03 23:23:53 6
218 34109 2020-06-03 23:23:53 2020-06-03 23:23:56 8
219 34109 2020-06-03 23:23:56 2020-06-03 23:24:25 3
220 34109 2020-06-03 23:24:25 2020-06-03 23:24:50 6
221 34109 2020-06-03 23:24:50 2020-06-03 23:24:53 8
222 34109 2020-06-03 23:24:53 2020-06-03 23:25:22 3
223 34109 2020-06-03 23:25:22 2020-06-03 23:25:48 6
224 34109 2020-06-03 23:25:48 2020-06-03 23:25:51 8
225 34109 2020-06-03 23:25:51 2020-06-03 23:26:20 3
226 34109 2020-06-03 23:26:20 2020-06-03 23:26:45 6
227 34109 2020-06-03 23:26:45 2020-06-03 23:26:48 8
228 34109 2020-06-03 23:26:48 2020-06-03 23:27:17 3
229 34109 2020-06-03 23:27:17 2020-06-03 23:27:46 6
230 34109 2020-06-03 23:27:46 2020-06-03 23:27:49 8
231 34109 2020-06-03 23:27:49 2020-06-03 23:28:19 3
232 34109 2020-06-03 23:28:19 2020-06-03 23:28:46 6
233 34109 2020-06-03 23:28:46 2020-06-03 23:28:49 8
234 34109 2020-06-03 23:28:49 2020-06-03 23:29:17 3
235 34109 2020-06-03 23:29:17 2020-06-03 23:29:43 6
236 34109 2020-06-03 23:29:43 2020-06-03 23:29:46 8
237 34109 2020-06-03 23:29:46 2020-06-03 23:30:15 3
238 34109 2020-06-03 23:30:15 2020-06-03 23:30:40 6
239 34109 2020-06-03 23:30:40 2020-06-03 23:30:43 8
240 34109 2020-06-03 23:30:43 2020-06-03 23:31:12 3
241 34109 2020-06-03 23:31:12 2020-06-03 23:31:37 6
242 34109 2020-06-03 23:31:37 2020-06-03 23:31:40 8
243 34109 2020-06-03 23:31:40 2020-06-03 23:32:09 3
244 34109 2020-06-03 23:32:09 2020-06-03 23:32:34 6
245 34109 2020-06-03 23:32:34 2020-06-03 23:32:37 8
246 34109 2020-06-03 23:32:37 2020-06-03 23:33:06 3
247 34109 2020-06-03 23:33:06 2020-06-03 23:33:32 6
248 34109 2020-06-03 23:33:32 2020-06-03 23:33:35 8
249 34109 2020-06-03 23:33:35 2020-06-03 23:34:03 3
250 34109 2020-06-03 23:34:03 2020-06-03 23:34:29 6
251 34109 2020-06-03 23:34:29 2020-06-03 23:34:32 8
252 34109 2020-06-03 23:34:32 2020-06-03 23:35:00 3
253 34109 2020-06-03 23:35:00 2020-06-03 23:35:26 6
254 34109 2020-06-03 23:35:26 2020-06-03 23:35:29 8
255 34109 2020-06-03 23:35:29 2020-06-03 23:35:58 3
256 34109 2020-06-03 23:35:58 2020-06-03 23:36:23 6
257 34109 2020-06-03 23:36:23 2020-06-03 23:36:26 8
258 34109 2020-06-03 23:36:26 2020-06-03 23:36:55 3
259 34109 2020-06-03 23:36:55 2020-06-03 23:37:21 6
260 34109 2020-06-03 23:37:21 2020-06-03 23:37:24 8
261 34109 2020-06-03 23:37:24 2020-06-03 23:37:52 3
262 34109 2020-06-03 23:37:52 2020-06-03 23:38:18 6
263 34109 2020-06-03 23:38:18 2020-06-03 23:38:21 8
264 34109 2020-06-03 23:38:21 2020-06-03 23:38:50 3
265 34109 2020-06-03 23:38:50 2020-06-03 23:39:15 6
266 34109 2020-06-03 23:39:15 2020-06-03 23:39:18 8
267 34109 2020-06-03 23:39:18 2020-06-03 23:39:47 3
268 34109 2020-06-03 23:39:47 2020-06-03 23:40:13 6
269 34109 2020-06-03 23:40:13 2020-06-03 23:40:16 8
270 34109 2020-06-03 23:40:16 2020-06-03 23:40:44 3
271 34109 2020-06-03 23:40:44 2020-06-03 23:41:10 6
272 34109 2020-06-03 23:41:10 2020-06-03 23:41:13 8
273 34109 2020-06-03 23:41:13 2020-06-03 23:41:42 3
274 34109 2020-06-03 23:41:42 2020-06-03 23:42:07 6
275 34109 2020-06-03 23:42:07 2020-06-03 23:42:10 8
276 34109 2020-06-03 23:42:10 2020-06-03 23:42:39 3
277 34109 2020-06-03 23:42:39 2020-06-03 23:43:05 6
278 34109 2020-06-03 23:43:05 2020-06-03 23:43:08 8
279 34109 2020-06-03 23:43:08 2020-06-03 23:43:36 3
280 34109 2020-06-03 23:43:36 2020-06-03 23:44:02 6
281 34109 2020-06-03 23:44:02 2020-06-03 23:44:05 8
282 34109 2020-06-03 23:44:05 2020-06-03 23:44:34 3
283 34109 2020-06-03 23:44:34 2020-06-03 23:44:59 6
284 34109 2020-06-03 23:44:59 2020-06-03 23:45:02 8
285 34109 2020-06-03 23:45:02 2020-06-03 23:45:31 3
286 34109 2020-06-03 23:45:31 2020-06-03 23:45:57 6
287 34109 2020-06-03 23:45:57 2020-06-03 23:46:00 8
288 34109 2020-06-03 23:46:00 2020-06-03 23:46:28 3
289 34109 2020-06-03 23:46:28 2020-06-03 23:46:54 6
290 34109 2020-06-03 23:46:54 2020-06-03 23:46:57 8
291 34109 2020-06-03 23:46:57 2020-06-03 23:47:25 3
292 34109 2020-06-03 23:47:25 2020-06-03 23:47:51 6
293 34109 2020-06-03 23:47:51 2020-06-03 23:47:54 8
294 34109 2020-06-03 23:47:54 2020-06-03 23:48:23 3
295 34109 2020-06-03 23:48:23 2020-06-03 23:48:48 6
296 34109 2020-06-03 23:48:48 2020-06-03 23:48:51 8
297 34109 2020-06-03 23:48:51 2020-06-03 23:49:20 3
298 34109 2020-06-03 23:49:20 2020-06-03 23:49:45 6
299 34109 2020-06-03 23:49:45 2020-06-03 23:49:48 8
300 34109 2020-06-03 23:49:48 2020-06-03 23:50:17 3
301 34109 2020-06-03 23:50:17 2020-06-03 23:50:43 6
302 34109 2020-06-03 23:50:43 2020-06-03 23:50:46 8
303 34109 2020-06-03 23:50:46 2020-06-03 23:51:14 3
304 34109 2020-06-03 23:51:14 2020-06-03 23:51:40 6
305 34109 2020-06-03 23:51:40 2020-06-03 23:51:43 8
306 34109 2020-06-03 23:51:43 2020-06-03 23:52:12 3
307 34109 2020-06-03 23:52:12 2020-06-03 23:52:37 6
308 34109 2020-06-03 23:52:37 2020-06-03 23:52:41 8
309 34109 2020-06-03 23:52:41 2020-06-03 23:53:09 3
310 34109 2020-06-03 23:53:09 2020-06-03 23:53:35 6
311 34109 2020-06-03 23:53:35 2020-06-03 23:53:38 8

If you can rename your tasks from numbers like “34109” to “Marketplace” then I think you’ll find that the spacing looks much better. Right now I suspect your data is being interpreted as numbers.

Hi Nicolas,

I just tried it and it does not seem to help. I get the same plot as before…

When you provide these labels, you’ll need to stop overriding the axis, tick text etc… Try just the create_gantt call with the labels in the data and your plot should start looking a little more normal :slight_smile:

@nicolaskruchten - Yes that would work if I had to only do the Gantt chart. But what I’m trying to achieve is Gantt and line over the Gantt charts , and to display these lines on top of the Gantt I need to change the y axis range to (-300,200) otherwise the line data disappears…
Is there a way to give these tasks a fixed y axis number which way I know where the tasks can be placed on the y axis, by default currently what is happening is they are placed on 1 and 0 which is why they overlap as the y axis range is (-300,200) and that is what I tried to do by changing the data and trying to set the y axis but somehow it did not reflect.
I hope my problem is clear, please let me know if you need more information.
Thanks

Your best bet is to use a secondary Y axis here, so that the categorical data stays mapped to 0,1,2,3 etc and you can also overlay your other data that has a different Y range.

Hi Nicolas,

I want to have multiple such tasks that would be say like 10 Gantt bars and using secondary y axis for every new task does not seem feasible…
Basically I would want to know can we edit the y axis for the Gantts in plotly to have the Gantt bars placed as the fixed y axis rather than the function choosing it for us,
I want to override the data.y fields of the Gantt chart so that the tasks are placed at a fixed position on y axis … It seemed like the data.y when I change it to like I tried above the data values change but the Gantt chart is not picking up those values, so I want to understand is why is not picking these overridden values when the other overridden values for the layout work perfectly as required…
Also I saw that this is possible with the bar charts in one of the posts. update data in bar charts
Something like this is what I tried to do but it does not reflect.
I hope my question is clear please let me know if I need to explain it in better way , I can re state the problem in a better way.
Also really appreciate your time in looking into this issue.
Thanks

I’m not suggesting that you use a different axis for each task, I’m suggesting that you use a different axis for the line you’re tracing

Hmmmm well, the plot I’m doing is a time series plot for traffic data and hence the y axis is a distance and the line plots are actually the vehicle trajectories across the signals, so even if I would have a different y axis for the line plots the question of having the Gantt tasks separated by a constant y axis length still remains as these are the intersections and they need to be placed at a several accurate distances from each other.

Thanks,
Shruti

Ah, that makes a lot more sense. This has been quite a struggle for me to understand what you’re trying to do, so I would encourage you to provide more context up front when asking questions on this forum :slight_smile:

My feeling, given this new information, is that you’re better off not starting with create_gantt() here, and rather start with your trajectories, and then add bars or lines or shapes at the appropriate Y coordinates afterwards. You could specify your Y coordinates as distances, and then use yaxis.tickvals and yaxis.ticktext to name your intersections, rather than starting from the output of create_gantt() and trying to manipulate it into some specific shape.

Oh, okies let me try this and see how it goes.
Thanks

@nicolaskruchten How do we add Gantt plots as traces to the line/scatter plots /. I cant seem to find a way to achieve this … Im pretty much new to plotly if you could provide some links that would be great.To achieve the task bar like what I have has been tricky with only the bar and hence I had used the Gantt in first place…
Thanks