How To Create An Interactive Gantt Diagram In Python Using Plotly & Excel | Step-by-Step Tutorial

preview_player
ะŸะพะบะฐะทะฐั‚ัŒ ะพะฟะธัะฐะฝะธะต

๐——๐—˜๐—ฆ๐—–๐—ฅ๐—œ๐—ฃ๐—ง๐—œ๐—ข๐—ก
โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€
In this tutorial, I will show you, how to create a Gantt Diagram in Python.

The data is coming directly from an Excel file.
You can do all the changes in the excel file and after running the code again you will have your updated Gantt Diagram.
The Gantt Chart is interactive and will be saved as an HTML file.

You can download the code & excel file here:

๐—ง๐—ข๐—ข๐—Ÿ๐—ฆ ๐—”๐—ก๐—— ๐—ฅ๐—˜๐—ฆ๐—ข๐—จ๐—ฅ๐—–๐—˜๐—ฆ
โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€

๐—–๐—ข๐—ก๐—ก๐—˜๐—–๐—ง ๐—ช๐—œ๐—ง๐—› ๐— ๐—˜
โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€โ–€

โ˜• ๐—•๐˜‚๐˜† ๐—บ๐—ฒ ๐—ฎ ๐—ฐ๐—ผ๐—ณ๐—ณ๐—ฒ๐—ฒ?
ะ ะตะบะพะผะตะฝะดะฐั†ะธะธ ะฟะพ ั‚ะตะผะต
ะšะพะผะผะตะฝั‚ะฐั€ะธะธ
ะะฒั‚ะพั€

Drag and drop and resize tasks dynamically will be amazing.

ajayjoseph
ะะฒั‚ะพั€

This was great! Now I just have to figure out how to get it to work with time instead of dates! Thanks for getting me started.

Slayvantz
ะะฒั‚ะพั€

Pretty cool tool. Can't believe how many free online tools require a payment now, just to use their most basic gantt chart making tools.

shashvatverma
ะะฒั‚ะพั€

Amazing tutorial! I'm new to Python so forgive me if this is a dumb question, but is there a way using plotly to add a scroll bar to the gantt chart? My schedules can be 1, 000s of activities and I'm trying to find a way to not compress the entire gantt chart onto one window. Cheers!

PJMScheduling
ะะฒั‚ะพั€

hey! thanks so much for this video. i'm doing a university project in visualization with python and this helped me so much to get started. I was wondering if you could give me a tip for the most beginner friendly way of making an animated gantt chart in python (so far i couldnt make it work in plotly but maybe you have a tip. Could be basically any library the main thing would be that its possible :D Thanks so much for your asnwer in advance.

cibi
ะะฒั‚ะพั€

Thank you so much for this great tutorial!

mikepetersen
ะะฒั‚ะพั€

Thanks for this video, that's helpful but i'm wondering if there is any way to add a "Comments" column in the excel file in order to add a hover text in the gantt chart?

jamilhassan
ะะฒั‚ะพั€

very cool mate, thank you, new sub here

py_tok
ะะฒั‚ะพั€

Appreciate the tutorial. It helped me a lot. Curious if we can add dependencies to the Gantt chart.

farazmehdi
ะะฒั‚ะพั€

Amazing tutorial ! thanks so much for this video.i'm doing a university project in visualization with python and this helped me so much to get started.
I'm new to Python so forgive me if this is a dumb question :
Is there a way to manipulate the bars by using the mouse in the image, for example assemble or return, or is there another way?But i want in the same thing(time line), Another library !!, I don't know !?
I hope for an answer.
Thanks in advance ๐Ÿ˜Š

nailialaeddine
ะะฒั‚ะพั€

Thank you so much. I want to try this but just to publish my excel table as is. Would it work with this code?

imranmasoud
ะะฒั‚ะพั€

Thank you. This was very helpful. I was just wondering how to allocate different colors (i.e., colors other than the default black) without the % completion data (meaning, all values in % completion column = 0)

jawwadrezanoor
ะะฒั‚ะพั€

That's a great tutorial. One thing I could not figure out is the date in my Gantt chart always start from 1970. It looks like the date was not read from my excel file somehow. Do you know how to fix it? Thank you.

umyaor
ะะฒั‚ะพั€

Plotly is cool but it is a complete mess regarding Gantt chart. In my case, the bar heights are completely random. Some is like a thread of hair thick, some take literally a quarter of my screen's height. I have looked up and find out that many people are experiencing the same problem and there seem to be no effective way to overcome this just yet.

TriNguyen-xiji
ะะฒั‚ะพั€

Thanks man for the video! I have one question, Can we justify the yticks to the left? I found no solution available yet! I tried to bypass that by adding extra spaces (all ticks with the same character count) to the left of the shorter ticks but apparently the space length is not as the letter length which makes it not possible to have all ticks start at the same (left level).

chemmakhabderraouf
ะะฒั‚ะพั€

hey! Is it possible to put colors in the background of the interface specify a specific time
For example, every day a color or every month a color
something like this
!?
I hope for an answer.
Thanks in advance ๐Ÿ˜Š

nailialaeddine
ะะฒั‚ะพั€

is it able to change the x-axis from time to numeric positions?(like 1-10000)

kkkokk
ะะฒั‚ะพั€

I had an error in powershell when trying to print output. I installed additional library openpyxl and this seemed to fix the problem. In case anyone else facing similar issue.

pauladdison
ะะฒั‚ะพั€

How can you make it show that the task finishes in the same day but it only took some hours?

asarma
join shbcf.ru