Plotly is a Python library that is used to design graphs, especially interactive graphs. It can plot various graphs and charts like histogram, barplot, boxplot, spreadplot, and many more. It is mainly used in data analysis as well as financial analysis. plotly is an interactive visualization library.
A Gantt chart is parallel to bar chart that delineates a project schedule. In Gantt chart tasks are performed in the vertical axis and the time intervals are performed in the horizontal axis. The width of the horizontal bars in the graph shows the endurance of both the activity. A Gantt chart is made up of numerous different elements. the main 8 key components are:
- Task list
- Date line
- Resource assigned
Syntax: plotly.figure_factory.create_gantt(df, colors=None, index_col=None, show_colorbar=False, reverse_colors=False, title=’Gantt Chart’, bar_width=0.2, showgrid_x=False, showgrid_y=False, height=600, width=None, tasks=None, task_names=None, data=None, group_tasks=False, show_hover_fill=True)
df: input data for gantt chart. Must be either a a dataframe or a list.
colors: either a plotly scale name, an rgb or hex color, a color tuple or a list of colors
show_colorbar: determines if colorbar will be visible. Only applies if values in the index column are numeric.
show_hover_fill: enables/disables the hovertext for the filled area of the chart.
title: title of the chart
height: Height of the chart
weight: Weight of the chart
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course