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

@foreach (highcharts chart in model.charts)

       <li> @(chart)</li>


@foreach (highcharts chart in model.charts)

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



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