**deprecated**, use instead :func:`plotly.express.timeline`. Returns figure for a gantt chart :param (array|list) df: input data for gantt chart. Must be either a a dataframe or a list. If dataframe, the columns must include 'Task', 'Start' and 'Finish'. Other colu
(
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,
)
| 800 | |
| 801 | |
| 802 | def create_gantt( |
| 803 | df, |
| 804 | colors=None, |
| 805 | index_col=None, |
| 806 | show_colorbar=False, |
| 807 | reverse_colors=False, |
| 808 | title="Gantt Chart", |
| 809 | bar_width=0.2, |
| 810 | showgrid_x=False, |
| 811 | showgrid_y=False, |
| 812 | height=600, |
| 813 | width=None, |
| 814 | tasks=None, |
| 815 | task_names=None, |
| 816 | data=None, |
| 817 | group_tasks=False, |
| 818 | show_hover_fill=True, |
| 819 | ): |
| 820 | """ |
| 821 | **deprecated**, use instead |
| 822 | :func:`plotly.express.timeline`. |
| 823 | |
| 824 | Returns figure for a gantt chart |
| 825 | |
| 826 | :param (array|list) df: input data for gantt chart. Must be either a |
| 827 | a dataframe or a list. If dataframe, the columns must include |
| 828 | 'Task', 'Start' and 'Finish'. Other columns can be included and |
| 829 | used for indexing. If a list, its elements must be dictionaries |
| 830 | with the same required column headers: 'Task', 'Start' and |
| 831 | 'Finish'. |
| 832 | :param (str|list|dict|tuple) colors: either a plotly scale name, an |
| 833 | rgb or hex color, a color tuple or a list of colors. An rgb color |
| 834 | is of the form 'rgb(x, y, z)' where x, y, z belong to the interval |
| 835 | [0, 255] and a color tuple is a tuple of the form (a, b, c) where |
| 836 | a, b and c belong to [0, 1]. If colors is a list, it must |
| 837 | contain the valid color types aforementioned as its members. |
| 838 | If a dictionary, all values of the indexing column must be keys in |
| 839 | colors. |
| 840 | :param (str|float) index_col: the column header (if df is a data |
| 841 | frame) that will function as the indexing column. If df is a list, |
| 842 | index_col must be one of the keys in all the items of df. |
| 843 | :param (bool) show_colorbar: determines if colorbar will be visible. |
| 844 | Only applies if values in the index column are numeric. |
| 845 | :param (bool) show_hover_fill: enables/disables the hovertext for the |
| 846 | filled area of the chart. |
| 847 | :param (bool) reverse_colors: reverses the order of selected colors |
| 848 | :param (str) title: the title of the chart |
| 849 | :param (float) bar_width: the width of the horizontal bars in the plot |
| 850 | :param (bool) showgrid_x: show/hide the x-axis grid |
| 851 | :param (bool) showgrid_y: show/hide the y-axis grid |
| 852 | :param (float) height: the height of the chart |
| 853 | :param (float) width: the width of the chart |
| 854 | |
| 855 | Example 1: Simple Gantt Chart |
| 856 | |
| 857 | >>> from plotly.figure_factory import create_gantt |
| 858 | |
| 859 | >>> # Make data for chart |
no test coverage detected