code: def _generate_div_id_chart(prefix="chart_id", digits=8):
      
      choices = (random.randrange(0, 52) for _ in range(digits))
      return prefix + "".join((string.ascii_letters[x] for x in choices))
docs: Generate a random id for div chart.