docstr: Sets the legend group for new shape. Traces and shapes part of
  the same legend group hide/show at the same time when toggling
  legend items.
  
  The 'legendgroup' property is a string and must be specified as:
    - A string
    - A number that will be converted to a string
  
  Returns
  -------
  str
docstr_tok: ["Sets","the","legend","group","for","new","shape",".","Traces","and","shapes","part","of","the","same","legend","group","hide\/show","at","the","same","time","when","toggling","legend","items",".","The","'legendgroup","'","property","is","a","string","and","must","be","specified","as",":","-","A","string","-","A","number","that","will","be","converted","to","a","string","Returns","--","--","--","-","str"]
code: def legendgroup(self):
      """
      Sets the legend group for new shape. Traces and shapes part of
      the same legend group hide/show at the same time when toggling
      legend items.
  
      The 'legendgroup' property is a string and must be specified as:
        - A string
        - A number that will be converted to a string
  
      Returns
      -------
      str
      """
      return self["legendgroup"]
  
imports: from plotly.basedatatypes import BaseLayoutHierarchyType
  import copy
label_desc: Use image node_id 13 for calling the Newshape obj's underlying member method code with example usage: obj.legendgroup() and returns: self