请上传具体例子测试
Dim d As Date = "2015-11-21" '当前时间
Dim t As DataTable
cmd1.CommandText = "Sele ct * Fro m {水表抄表} W here 编号 = 2 And 抄表时刻 >= convert(varchar(10),'" & d & "',120) And 抄表时刻 < convert(varchar(10),dateadd(d,1,'" & d & "'),120)"
t = cmd1.ExecuteReader()
Dim Chart As WinForm.Chart '定义一个图表变量
Dim Series As WinForm.ChartSeries '定义一个图系变量
'Dim t As Table = dt '定义一个变量t引用数据表
Chart= e.Form.Controls("Chart1") ' 引用窗口中的图表
''Chart.VisualEffect = True
Chart.ChartType = ChartTypeEnum.XYPlot
Chart.SeriesList.Clear() '清除图表原来的图系
Series = Chart.SeriesList.Add() '增加一个图系
Series.Length = t.DataRows.count'图系的数据点数等于表的行数
For i As Integer = 0 To t.dataRows.Count - 1 '指定每个数据点的位置
Series.X(i) = i '指定水平坐标
Series.Y(i) = t.dataRows(i)("示数") '指定垂直坐标
Next