Posted on: 2/18/2014 12:33:36 PM | Views : 637

I have this chart control in an ascx user control.
<asp:Chart runat="server" ID="Chart1" Width="175px" Height="175px" Palette="Fire" Enabled="false"> <Series> <asp:Series Name="Series1"> </asp:Series> </Series> <ChartAreas> <asp:ChartArea Name="ChartArea1"> </asp:ChartArea> </ChartAreas> </asp:Chart> And then this code:
Int32[] yValues = new Int32[GrConc.Rows.Count]; string[] xValues = new string[GrConc.Rows.Count]; int counter = 0; foreach (DataRow row in GrConc.Rows) { yValues[counter] = Convert.ToInt32(row[0].ToString()); xValues[counter] = ...

Go to the complete details ...