Reputation: 13
How to replace
@Html.Highsoft().GetHighchartsJS(chart, "Grid"+i);
in the latest version of highcharts as this is not supported anymore.
chart.ID = "Grid" + i;
var renderedHtml = new HighchartsRenderer(chart).RenderHtml();
@Html.Raw(renderedHtml);
This is not working for me in 11.4.7 version of highcharts.
Trying to load multiple highcharts in a single view
Upvotes: 1
Views: 36
Reputation: 546
You can try using the HighchartsRenderer.GetJavascript()
method and it should work fine.
Upvotes: 0