class_docstr: Configure tooltips.
  
  Notes
  -----
  Set tooltips='none' to hide tooltips from this layer.
  
  Examples
  --------
  .. jupyter-execute::
      :linenos:
      :emphasize-lines: 15
  
      import numpy as np
      from lets_plot import *
      LetsPlot.setup_html()
      n = 100
      np.random.seed(42)
      data = {
          'id': np.arange(n),
          'x': np.random.normal(size=n),
          'y': np.random.normal(size=n),
          'c': np.random.choice(['a', 'b'], size=n),
          'w': np.random.randint(1, 11, size=n)
      }
      ggplot(data, aes('x', 'y')) + \
          geom_point(aes(color='c', size='w'), \
                     tooltips=layer_tooltips().line('@c "@id"')
                                              .line('---')
                                              .format('@y', '.2f')
                                              .line('(x, y)|(^x, @y)')
                                              .line('@|@w')) + \
          scale_size(range=[2, 4])
  
  |
  
  .. jupyter-execute::
      :linenos:
      :emphasize-lines: 12
  
      import numpy as np
      from lets_plot import *
      LetsPlot.setup_html()
      n = 100
      np.random.seed(42)
      data = {
          'x': np.random.normal(size=n),
          'y': np.random.normal(size=n),
          'c': np.random.randint(10, size=n)
      }
      ggplot(data, aes('x', 'y')) + \
          geom_point(aes(color='c'), tooltips='none')
class_docstr_tok: ["Configure","tooltips",".","Notes","--","--","-","Set","tooltips='none","'","to","hide","tooltips","from","this","layer",".","Examples","--","--","--","--","..","jupyter-execute",":",":",":","linenos",":",":","emphasize-lines",":","15","import","numpy","as","np","from","lets_plot","import","*","LetsPlot.setup_html","(",")","n","=","100","np.random.seed","(","42",")","data","=","{","'id","'",":","np.arange","(","n",")",",","'","x","'",":","np.random.normal","(","size=n",")",",","'","y","'",":","np.random.normal","(","size=n",")",",","'","c","'",":","np.random.choice","(","[","'","a","'",",","'","b","'","]",",","size=n",")",",","'","w","'",":","np.random.randint","(","1",",","11",",","size=n",")","}","ggplot","(","data",",","aes","(","'","x","'",",","'","y","'",")",")","+","\\","geom_point","(","aes","(","color=","'","c","'",",","size=","'","w","'",")",",","\\","tooltips=layer_tooltips","(",")",".line","(","'","@","c","``","@","id","''","'",")",".line","(","'","--","-","'",")",".format","(","'","@","y","'",",","'.2f","'",")",".line","(","'","(","x",",","y",")","|","(","^x",",","@","y",")","'",")",".line","(","'","@","|","@","w","'",")",")","+","\\","scale_size","(","range=","[","2",",","4","]",")","|","..","jupyter-execute",":",":",":","linenos",":",":","emphasize-lines",":","12","import","numpy","as","np","from","lets_plot","import","*","LetsPlot.setup_html","(",")","n","=","100","np.random.seed","(","42",")","data","=","{","'","x","'",":","np.random.normal","(","size=n",")",",","'","y","'",":","np.random.normal","(","size=n",")",",","'","c","'",":","np.random.randint","(","10",",","size=n",")","}","ggplot","(","data",",","aes","(","'","x","'",",","'","y","'",")",")","+","\\","geom_point","(","aes","(","color=","'","c","'",")",",","tooltips='none","'",")"]
docstr:     Line with title to show in the tooltip.
      Add a title template to the tooltip.
  
      Parameters
      ----------
      value : str
          Enriched string which becomes the title of the tooltip.
  
      Returns
      -------
      `layer_tooltips`
          Layer tooltips specification.
  
      Notes
      -----
      The specification rules are the same as for the `lines()` function:
      variables and aesthetics can be used in the template.
      The resulting string will be at the beginning of the general tooltip, centered and highlighted in bold.
      A long title can be split into multiple lines using `\\n` as a text separator.
  
  Examples
  --------
  .. jupyter-execute::
      :linenos:
      :emphasize-lines: 15
  
      import numpy as np
      from lets_plot import *
      LetsPlot.setup_html()
      n = 100
      np.random.seed(42)
      data = {
          'id': np.arange(n),
          'x': np.random.normal(size=n),
          'y': np.random.normal(size=n),
          'c': np.random.choice(['a', 'b'], size=n),
          'w': np.random.randint(1, 11, size=n)
      }
      ggplot(data, aes('x', 'y')) + \
          geom_point(aes(color='c', size='w'), show_legend=False, \
                     tooltips=layer_tooltips().title('@id')
                                              .line('color|@c')
                                              .line('size|@w'))
  
      
docstr_tok: ["Line","with","title","to","show","in","the","tooltip",".","Add","a","title","template","to","the","tooltip",".","Parameters","--","--","--","--","--","value",":","str","Enriched","string","which","becomes","the","title","of","the","tooltip",".","Returns","--","--","--","-","`","layer_tooltips","`","Layer","tooltips","specification",".","Notes","--","--","-","The","specification","rules","are","the","same","as","for","the","`","lines","(",")","`","function",":","variables","and","aesthetics","can","be","used","in","the","template",".","The","resulting","string","will","be","at","the","beginning","of","the","general","tooltip",",","centered","and","highlighted","in","bold",".","A","long","title","can","be","split","into","multiple","lines","using","`","\\\\n","`","as","a","text","separator",".","Examples","--","--","--","--","..","jupyter-execute",":",":",":","linenos",":",":","emphasize-lines",":","15","import","numpy","as","np","from","lets_plot","import","*","LetsPlot.setup_html","(",")","n","=","100","np.random.seed","(","42",")","data","=","{","'id","'",":","np.arange","(","n",")",",","'","x","'",":","np.random.normal","(","size=n",")",",","'","y","'",":","np.random.normal","(","size=n",")",",","'","c","'",":","np.random.choice","(","[","'","a","'",",","'","b","'","]",",","size=n",")",",","'","w","'",":","np.random.randint","(","1",",","11",",","size=n",")","}","ggplot","(","data",",","aes","(","'","x","'",",","'","y","'",")",")","+","\\","geom_point","(","aes","(","color=","'","c","'",",","size=","'","w","'",")",",","show_legend=False",",","\\","tooltips=layer_tooltips","(",")",".title","(","'","@","id","'",")",".line","(","'color|","@","c","'",")",".line","(","'size|","@","w","'",")",")"]
code: def title(self, value):
      """
          Line with title to show in the tooltip.
          Add a title template to the tooltip.
  
          Parameters
          ----------
          value : str
              Enriched string which becomes the title of the tooltip.
  
          Returns
          -------
          `layer_tooltips`
              Layer tooltips specification.
  
          Notes
          -----
          The specification rules are the same as for the `lines()` function:
          variables and aesthetics can be used in the template.
          The resulting string will be at the beginning of the general tooltip, centered and highlighted in bold.
          A long title can be split into multiple lines using `\\\\n` as a text separator.
  
      Examples
      --------
      .. jupyter-execute::
          :linenos:
          :emphasize-lines: 15
  
          import numpy as np
          from lets_plot import *
          LetsPlot.setup_html()
          n = 100
          np.random.seed(42)
          data = {
              'id': np.arange(n),
              'x': np.random.normal(size=n),
              'y': np.random.normal(size=n),
              'c': np.random.choice(['a', 'b'], size=n),
              'w': np.random.randint(1, 11, size=n)
          }
          ggplot(data, aes('x', 'y')) + \\
              geom_point(aes(color='c', size='w'), show_legend=False, \\
                         tooltips=layer_tooltips().title('@id')
                                                  .line('color|@c')
                                                  .line('size|@w'))
  
          """
      self._tooltip_title = value
      return self
  
file_path: lets-plot/python-package/lets_plot/plot/tooltip.py
imports: from typing import List
  from lets_plot.plot.core import FeatureSpec, _filter_none
label_desc: Use image node_id 8 for calling the layer_tooltips obj's underlying member method code with example usage: obj.title(value) and returns: self