class_docstr: Class for adding callouts to the chart.
docstr: Add line callout to the chart.
  
  Args:
      location (numeric):
      orientation (str, optional): (default: 'width')
          - 'width'
          - 'height'
      line_color (str, optional): Color name or hex value.
          See chartify.color_palettes.show() for available color names.
      line_dash (str, optional): Dash style for the line. One of:
          - 'solid'
          - 'dashed'
          - 'dotted'
          - 'dotdash'
          - 'dashdot'
      line_width (int, optional): Width of the line
      line_alpha (float, optional): Alpha of the line. Between 0 and 1.
  
  Returns:
      Current chart object
docstr_tok: ["Add","line","callout","to","the","chart",".","Args",":","location","(","numeric",")",":","orientation","(","str",",","optional",")",":","(","default",":","'width","'",")","-","'width'","-","'height'","line_color","(","str",",","optional",")",":","Color","name","or","hex","value",".","See","chartify.color_palettes.show","(",")","for","available","color","names",".","line_dash","(","str",",","optional",")",":","Dash","style","for","the","line",".","One","of",":","-","'solid'","-","'dashed'","-","'dotted'","-","'dotdash'","-","'dashdot'","line_width","(","int",",","optional",")",":","Width","of","the","line","line_alpha","(","float",",","optional",")",":","Alpha","of","the","line",".","Between","0","and","1",".","Returns",":","Current","chart","object"]
code: def line(
      self,
      location,
      orientation="width",
      line_color="black",
      line_dash="solid",
      line_width=2,
      line_alpha=1.0,
  ):
      """Add line callout to the chart.
  
      Args:
          location (numeric):
          orientation (str, optional): (default: 'width')
              - 'width'
              - 'height'
          line_color (str, optional): Color name or hex value.
              See chartify.color_palettes.show() for available color names.
          line_dash (str, optional): Dash style for the line. One of:
              - 'solid'
              - 'dashed'
              - 'dotted'
              - 'dotdash'
              - 'dashdot'
          line_width (int, optional): Width of the line
          line_alpha (float, optional): Alpha of the line. Between 0 and 1.
  
      Returns:
          Current chart object
      """
      # Convert datetime values to epoch if datetime axis.
      if (
          isinstance(self._chart.axes, DatetimeXNumericalYAxes)
          and orientation == "height"
      ):
          location = self._chart.axes._convert_timestamp_to_epoch_ms(
              location
          )
      line_color = colors.Color(line_color).get_hex_l()
      location_units = "data"
      span = bokeh.models.Span(
          location=location,
          dimension=orientation,
          line_color=line_color,
          line_dash=line_dash,
          line_width=line_width,
          location_units=location_units,
          line_alpha=line_alpha,
      )
      self._chart.figure.add_layout(span)
      return self._chart
  
file_path: chartify/chartify/_core/callout.py
imports: import bokeh
  from chartify._core import colors
  from chartify._core.axes import DatetimeXNumericalYAxes
label_desc: Use image node_id 2 for calling the Callout obj's underlying member method code with example usage: obj.line(location, orientation, line_color, line_dash, line_width, line_alpha) and returns: self