score:0

It seems you need table or list to show more then one result:

<ul>
@foreach (Highcharts chart in Model.Charts)
{

       <li> @(chart)</li>

}
</ul>

//Or
<table>
@foreach (Highcharts chart in Model.Charts)
{

       <tr> <td>@(chart)</td></tr>

}
</table>

score:2

From your code you have commented out // model.Charts.Add(g2); so it seems to me only one chart is added to the model

Make sure the chart names are unique in your method for generating each chart ie. Highcharts chart = new Highcharts("chart2")

I imagine in your case the methods for generating the charts both read Highcharts chart = new Highcharts("chart")


Related Query

More Query from same tag