title: How do i display my chart in a view using mvc helpers?
body: <p>i am using mvc helpers to create a bar graph based on the sum of the hours an employee has worked vs the months. I am using a dropdown list, to filter these charts by the employees name. But i am having a problem, when i click on the dropdownlist the correct chart displays but just the image and not in the page view. 
  How do i fix this?
  Please help.
  My method in the controller. </p>
  
  <pre><code>   public ActionResult CharterColumn(string Status)
  
                  {
                      var results = (from c in db.Clockcards select c);
  
  
  
  
                  var groupedByMonth = results
                      .Where(a =&gt; a.Name == Status)
                      .OrderByDescending(x =&gt; x.Date)
                      .GroupBy(x =&gt; new {x.Date.Year, x.Date.Month}).ToList();
  
  
  
                  List&lt;string&gt; monthNames = groupedByMonth
  
                      .Select(a =&gt; a.FirstOrDefault().Date.ToString("MMMM"))
                      .ToList();
  
                  List&lt;double&gt; hoursPerMonth = groupedByMonth
                      .Select(a =&gt; a.Sum(p =&gt; p.Hours))
                      .ToList();
  
  
                  ArrayList xValue = new ArrayList(monthNames);
                  ArrayList yValue = new ArrayList(hoursPerMonth);
  
                  new Chart(width: 800, height: 400, theme: ChartTheme.Blue)
                      .AddTitle("Chart")
                      .AddSeries("Default", chartType: "Column", xValue: xValue, yValues: yValue)
                      .Write("bmp");
  
                  return null;
              }
  
  
  
              public ActionResult Index()
              {
  
                  ViewBag.Status = (from r in db.Clockcards
                      select r.Name).Distinct();
  
  
                  return View();
              }
  </code></pre>
  
  <p>My view              </p>
  
  <pre><code>    &lt;p&gt;
          @using (Html.BeginForm("CharterColumn", "Chart", FormMethod.Get))
          {
              &lt;b&gt;Search by Full Name:&lt;/b&gt;&lt;font color="black"&gt;@Html.DropDownList("Status", new SelectList(ViewBag.Status), new { onchange = "this.form.submit()" })&lt;/font&gt;
  
  
          }
      &lt;/p&gt;
  </code></pre>