code: def buildcontainer(self):
          
          if self.container:
              return
          # Create HTML div with style
          if self.options['chart'].width:
              if str(self.options['chart'].width)[-1] != '%':
                  self.div_style += 'width:%spx;' % self.options['chart'].width
              else:
                  self.div_style += 'width:%s;' % self.options['chart'].width
          if self.options['chart'].height:
              if str(self.options['chart'].height)[-1] != '%':
                  self.div_style += 'height:%spx;' % self.options['chart'].height
              else:
                  self.div_style += 'height:%s;' % self.options['chart'].height
  
          self.div_name = self.options['chart'].__dict__['renderTo'] # recheck div name
          self.container = self.containerheader + \
              '<div id="%s" style="%s">%s</div>\n' % (self.div_name, self.div_style, self.loading)
docs: generate HTML div