I would like to know how to change my Pie Chart to a Bar Chart or any other chart type on button click. Please see my chart code below.
<asp:Chart ID="Chart1" BorderlineColor="Black" BorderlineDashStyle="Solid" Visible="true"
ImageType="Png" runat="server" Height="600px" Width="600px">
<Titles>
<asp:Title TextStyle="Frame">
</asp:Title>
</Titles>
<Legends>
<asp:Legend Alignment="Far" Docking="Top">
</asp:Legend>
</Legends>
<Series>
<asp:Series Name="Series1" ChartType="Pie" YValuesPerPoint="2">
</asp:Series>
</Series>
<ChartAreas>
<asp:ChartArea IsSameFontSizeForAllAxes="true" Name="ChartArea1">
<Area3DStyle Enable3D="true" />
</asp:ChartArea>
</ChartAreas>
</asp:Chart>