I use Microsoft chart and I have below line of code to get chart.
<img src="@Url.Action("GetChart")" alt="Bar Chart using MVC" class="img-responsive" />
I have a radio button list and upon changing the selection, i need to show a different chart in the same place.
<form method="post" id="frmFormType">
@Html.Label("Select Chart Type")
@Html.RadioButton("rbChartType", "1", isChecked: true) @Html.Label("First Option")
@Html.RadioButton("rbChartType", "2", isChecked: false) @Html.Label("Second option")
</form>
I'm not sure if I can use jQuery change function on this "rbChartType" or use something take advantage of Form. I don't really need to re-post the page but only to change graph. I am not sure how to refetch new chart when selection changed using jQuery. Can anyone please throw some light on this? Thanks