title: example of highchart for mvc4
body: <p>friends I'm new to <code>highchart</code> ,need your help to create chart in <code>MVC 4</code> ,I write the code on Home controller like...</p>
  
  <pre><code>public class HomeController : Controller
  {
  
      public ActionResult Index()
      {
          Highcharts chart = new Highcharts("chart")
      .SetCredits(new Credits { Enabled = false })
      .InitChart(new Chart { DefaultSeriesType = ChartTypes.Column })
      .SetTitle(new Title { Text = "Membership Overview" })
      .SetXAxis(new XAxis { Categories = new[] { "Paid Members", "Active Members", "Retained Members", "New Members", "Lapsed Members" } })
      .SetYAxis(new YAxis
      {
          Min = 0,
          Title = new YAxisTitle { Text = "Total Members" }
      })
      .SetTooltip(new Tooltip { Formatter = "function() { return ''+ this.series.name +': '+ this.y +''; }" })
      .SetPlotOptions(new PlotOptions { Bar = new PlotOptionsBar { Stacking = Stackings.Normal } })
      .SetSeries(new[]
                 {
                     new Series { Name = "Total", Data = new Data(new object[] { 441, 441, 22, 30, 610 }) }
                  });
  
  
          return View(chart);
      }
  }
  </code></pre>
  
  <p>now I don't understand how to render it on <code>index.cshtml</code> page.</p>