Anju Raman
Anju Raman

Reputation: 13

In v8 of highcharts implemented multiple highcharts in a single view but not working in the upgraded version GetHighchartsJS

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

Answers (1)

jedrzejruta
jedrzejruta

Reputation: 546

You can try using the HighchartsRenderer.GetJavascript() method and it should work fine.

Upvotes: 0

Related Questions