嘿,我正在尝试像这样填充数组:
Dim tmpArray As String = ""
Do Until x = Form1.arrayCal.Length
tmpArray = tmpArray & "," & x
x += 1
Loop
tmpArray = Replace(tmpArray, ",1", "1")
Dim arrDaysInMonth As String() = {tmpArray}
Dim arrNumOfVisits As Double() = {10, 20, 30, 40, 50, 52, 20, 20, 10, 35, 3, 8, 47, 7, 2, 5, 55, 8, 0, 0, 6, 55, 0, 2, 12, 0, 0, 21, 14, 0, 3}
Me.ChartControl1.Series.Clear()
Dim s As New DataDynamics.ActiveReports.Chart.Series()
s.Type = DataDynamics.ActiveReports.Chart.ChartType.Bar2D
s.Points.DataBindXY(arrDaysInMonth, arrNumOfVisits)
但是,我似乎不能那样做..这样做似乎只将它放在一维数组中,而不是 {1,2,3,4,5...} 类型的数组,因为它需要将在。
任何帮助都会很棒!
大卫