code: def timeline(
      data_frame=None,
      x_start=None,
      x_end=None,
      y=None,
      color=None,
      facet_row=None,
      facet_col=None,
      facet_col_wrap=0,
      facet_row_spacing=None,
      facet_col_spacing=None,
      hover_name=None,
      hover_data=None,
      custom_data=None,
      text=None,
      animation_frame=None,
      animation_group=None,
      category_orders=None,
      labels=None,
      color_discrete_sequence=None,
      color_discrete_map=None,
      color_continuous_scale=None,
      range_color=None,
      color_continuous_midpoint=None,
      opacity=None,
      range_x=None,
      range_y=None,
      title=None,
      template=None,
      width=None,
      height=None,
  ):
      """
      In a timeline plot, each row of `data_frame` is represented as a rectangular
      mark on an x axis of type `date`, spanning from `x_start` to `x_end`.
      """
      return make_figure(
          args=locals(),
          constructor="timeline",
          trace_patch=dict(textposition="auto", orientation="h"),
          layout_patch=dict(barmode="overlay"),
      )
  
imports: from ._core import make_figure
  from ._doc import make_docstring
  import plotly.graph_objs
label_desc: Use image node_id 7 for calling a global function with example usage: timeline(data_frame, x_start, x_end, y, color, facet_row, facet_col, facet_col_wrap, facet_row_spacing, facet_col_spacing, hover_name, hover_data, custom_data, text, animation_frame, animation_group, category_orders, labels, color_discrete_sequence, color_discrete_map, color_continuous_scale, range_color, color_continuous_midpoint, opacity, range_x, range_y, title, template, width, height) and returns: make_figure