Hi
Julien,
Thanks
for the update.
If
your intention is to use html helper in controller means, you can use the below
code snippet in controller for chart to achieve this,
[C#]
MVCChartModel chartModel = new MVCChartModel();
InitializeChart(chartModel);
ViewData["ChartModel"]
= chartModel;
//html helper in controller
System.IO.TextWriter
writer = new System.IO.StringWriter();
var html = new HtmlHelper(new ViewContext(ControllerContext,
new WebFormView(ControllerContext,
"Index"), new
ViewDataDictionary(), new TempDataDictionary(),
writer), new ViewPage());
var
ChartString = html.Syncfusion().Chart("Chart_Model",
chartModel);
Also, please
refer the below forum links to know more details for this,
http://stackoverflow.com/questions/6887697/htmlhelper-in-controller
http://stackoverflow.com/questions/621235/using-htmlhelper-in-a-controller
Please let us
know if we misunderstood your query.
Regards,
Vijayabharathi