class_docstr: Class for adding callouts to the chart.
docstr: Add text callout to the chart.
  
          Note:
              Use `
  ` within text for newlines.
          Args:
              x (numeric): x location of the text.
              y (numeric, optional): y location of the text.
              text_color (str): Color name or hex value.
                  See chartify.color_palettes.show() for available color names.
              text_align (str: 'left', 'right', 'center'): Text alignment.
              font_size (str): Font size.
              angle (int, 0 to 360): Angle in degrees from horizontal. Default: 0
  
          Returns:
              Current chart object
          
docstr_tok: ["Add","text","callout","to","the","chart",".","Note",":","Use","`","`","within","text","for","newlines",".","Args",":","x","(","numeric",")",":","x","location","of","the","text",".","y","(","numeric",",","optional",")",":","y","location","of","the","text",".","text_color","(","str",")",":","Color","name","or","hex","value",".","See","chartify.color_palettes.show","(",")","for","available","color","names",".","text_align","(","str",":","'left","'",",","'right","'",",","'center","'",")",":","Text","alignment",".","font_size","(","str",")",":","Font","size",".","angle","(","int",",","0","to","360",")",":","Angle","in","degrees","from","horizontal",".","Default",":","0","Returns",":","Current","chart","object"]
code: def text(
      self,
      text,
      x,
      y,
      text_color="black",
      text_align="left",
      font_size="1em",
      angle=0,
  ):
      """Add text callout to the chart.
  
      Note:
          Use `\n` within text for newlines.
      Args:
          x (numeric): x location of the text.
          y (numeric, optional): y location of the text.
          text_color (str): Color name or hex value.
              See chartify.color_palettes.show() for available color names.
          text_align (str: 'left', 'right', 'center'): Text alignment.
          font_size (str): Font size.
          angle (int, 0 to 360): Angle in degrees from horizontal. Default: 0
  
      Returns:
          Current chart object
      """
      # Convert datetime values to epoch if datetime axis.
      if isinstance(self._chart.axes, DatetimeXNumericalYAxes):
          x = self._chart.axes._convert_timestamp_to_epoch_ms(x)
      text_color = colors.Color(text_color).get_hex_l()
      source = bokeh.models.ColumnDataSource(
          {"text": [text], "x": [x], "y": [y]}
      )
      text_font = self._chart.style._get_settings(
          "text_callout_and_plot"
      )["font"]
      self._chart.figure.text(
          x="x",
          y="y",
          text="text",
          text_color=text_color,
          text_align=text_align,
          angle=angle,
          angle_units="deg",
          text_font=text_font,
          source=source,
          text_font_size=font_size,
      )
      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 5 for calling the Callout obj's underlying member method code with example usage: obj.text(text, x, y, text_color, text_align, font_size, angle) and returns: self