I am trying to get the barchart to fill with my data, but what happens is that it errors out the rest of my page and I shows nothing, but doe snto show an error on the page. Do not know if this is the correct way to fill a barchart as I cannot find many examples of it online only one and it does not seem to work correctly.
Private Sub FILLChart()
sql = "Exec sp_SRPAttendance " & ddlSrpEvent.SelectedValue & ", " & ddlSRPDay.SelectedValue
myDataTable = New DataTable
myDataTable = getReader(sql)
Dim Sced As Decimal() = New Decimal() {myDataTable.Rows(0)(0)}
Dim ScedIN As Decimal() = New Decimal() {myDataTable.Rows(0)(1)}
Dim ScedOut As Decimal() = New Decimal() {myDataTable.Rows(0)(2)}
ChrtInOut.Series(0).Name = "Sceduled"
ChrtInOut.Series(0).Data = Sced
ChrtInOut.Series(1).Name = "IN"
ChrtInOut.Series(1).Data = ScedIN
ChrtInOut.Series(1).Name = "OUT"
ChrtInOut.Series(1).Data = ScedOut
End Sub<asp:BarChart ID="ChrtInOut" runat="server" ChartHeight="200" ChartWidth="260"><Series><asp:BarChartSeries Name="Sceduled" /></Series><Series><asp:BarChartSeries Name="IN" /></Series><Series><asp:BarChartSeries Name="OUT" /></Series></asp:BarChart>