Skip to content

Instantly share code, notes, and snippets.

@goenning
Created December 11, 2011 20:10
Show Gist options
  • Save goenning/1462478 to your computer and use it in GitHub Desktop.
Save goenning/1462478 to your computer and use it in GitHub Desktop.
Highcharts MVC ajax-enabled example
@(
Html.Highchart("myAjaxChart")
.Title("Tickets per month")
.WithSerieType(ChartSerieType.Column)
.AxisX("Jan", "Feb", "Mar")
.AxisY("Quantity")
.Series(
AjaxConfig.LoadFrom(Url.Action("LoadData", "Ajax")).Reload(5000)
)
.ToHtmlString()
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment