protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         //string html = "";
         //int count = 0;
         //for (int i = 0; i < 4; i++)
         //{
         //    count = i + 50;
         //    html += "<div class='col-md-3 col-sm-6'>";
         //    html += "<div class='our-progress' >";
         //    html += "<div class='chart' data-percent='" + count + "'>";
         //    html += "<span class='percent'>" + count + "</span>";
         //    html += "</div></div></div>";
         //    count += 20;
         //}
         //piechart.InnerHtml = html;
         //  String request = (Request.QueryString["EventID"]);
         string              eventID        = Request.QueryString["EventID"];
         List <int>          ticketList     = new List <int>();
         List <double>       percentageList = new List <double>();
         ReportServiceClient _report        = new ReportServiceClient();
         ticketList     = _report.GetTicketCountPerEvent(eventID);
         percentageList = calculatepercentage(ticketList);
         string html = "";
         for (int i = 0; i < percentageList.Count(); i++)
         {
             html += "<div class='col-md-3 col-sm-6'>";
             html += "<div class='Number of Tickets by Type' >";
             html += "<div class='chart' data-percent='" + percentageList[i] + "'>";
             html += "<span class='percent'>" + percentageList[i] + "</span>";
             html += "</div></div></div>";
         }
         piechart.InnerHtml = html;
     }
 }