Category : gantt-chart

I am trying to plot a timeline chart but they are stacking over each other. import pandas as pd import plotly.express as pex d1 = dict(Start= ‘2021-10-10 02:00:00’, Finish = ‘2021-10-10 09:00:00’, Task = ‘Sleep’) d2 = dict(Start= ‘2021-10-10 09:00:00’, Finish = ‘2021-10-10 09:30:00’, Task = ‘EAT’) d3 = dict(Start= ‘2021-10-10 09:30:00’, Finish = ‘2021-10-10 ..

Read more

I have the below dataframe where I compute the duration per id, then I resample the output per 60 seconds recomputing the duration as the cumulative sum within the 60s, and finally plot a gantt chart based on the start and end time of the resampled output. id,date,value 1,2012-01-01 08:09:00,1 1,2012-01-01 08:09:05,1 2,2012-01-01 08:09:15,1 2,2012-01-01 ..

Read more

I am trying to make some changes to the plotly gantt charts taken from here: https://plotly.com/python/gantt/ I want to add an extra entry called ‘Occurrence’ which takes the number of times a task actually occurred between Start and Finish instead of the time duration between Start and Finish. For example between 2009-01-01 to 2009-02-28, ‘Job ..

Read more

I am trying to use the timeline chart show each row (Y-axis) with different heights in below chart. Code: import plotly.express as px import pandas as pd df = pd.DataFrame([dict(Task="Task1", Start=’2017-01-01′, Finish=’2017-02-15′, Phase =’Phase1′, Height=0.50), dict(Task="Task1", Start=’2017-02-15′, Finish=’2017-03-15′, Phase =’Phase2′, Height=0.50), dict(Task="Task2", Start=’2017-01-17′, Finish=’2017-02-17′, Phase =’Phase2′, Height=0.2), dict(Task="Task2", Start=’2017-02-18′, Finish=’2017-03-17′, Phase =’Phase3′, Height=0.20), dict(Task="Task3", Start=’2017-03-10′, ..

Read more