Please see the attached data file and following code blocks:
View:
@model FusionChartsPrototype.Controllers.HomeController
@Html.Raw(Model.Chart)
Controller:
public ActionResult Index()
{
FusionCharts.SetRenderer("javascript");
Chart = FusionCharts.RenderChart("../Charts/MSStepLine.swf", "../Data/Data.xml", "", "myChart", "600",
"300", false, true);
return View(this);
}
public string Chart { get; set; }
Thank you!
Data.xml