Tell me more ×  I have a Chart Control that I am trying to
dynamically populate with a number of series from a
sqldatasource, here's my chart control:  <asp:Chart
ID="chartMonthly" runat="server" Width="920px"
ImageLocation="~/Images/Temp/ChartPic_#SEQ(300,3)"
Palette="Berry">             <asp:ChartArea
Name="line"></asp:ChartArea>  And here's how I dynamically add
the series and points:  Private Sub
chartMonthly_DataBinding(sender As Object, e As
System.EventArgs) Handles chartMonthly.DataBinding      Dim
conStr As String = ConfigurationManager.ConnectionStrings("Gensh
enPOS").ConnectionString     Dim conn As New
SqlConnection(conStr)       Dim sqlPoints As New
SqlCommand("SELECT [m] AS [月], [Store] AS [門市], SUM([amount]) AS
[NTD] FROM vwMonthly WHERE [y] = " & dropYear.SelectedValue & "
GROUP BY [m], [Store]", conn)      Dim reader As SqlDataReader =
sqlPoints.ExecuteReader()      While reader.Read()          If
chartMonthly.Series.IndexOf(reader.Item("門市")) = -1 Then
chartMonthly.Series(reader.