Rss & SiteMap
Foxtable(狐表) http://www.foxtable.com
tables("zj").filter=""
dim com as winform.combobox=e.form.controls("combobox1")
tables("zj").filter="[栏舍号] = '"& com.value & "'"
Dim Chart As WinForm.Chart '定义一个图表变量
Dim Series As WinForm.ChartSeries '定义一个图系变量
Dim t As Table = Tables("zj") '定义一个变量t引用数据表
Chart = e.Form.Controls("Chart1") ' 引用窗口中的图表
Chart.VisualEffect = True '加上这一行,让你的图表更漂亮
Chart.ChartType = ChartTypeEnum.XYPLot '图表类型该为
Chart.DataSource = "zj" '设置绑定表
Chart.SeriesList.Clear() '清除图表原来的图系
Series = Chart.SeriesList.Add() '增加第一个图系
Chart.AxisX.DateType = True '明确指定X轴是日期型
Chart.AxisX.AnnoFormatString = "yy-MM-dd" '指定日期标示格式
chart.datafilter=tables("zj").filter
Series.Text = "合格蛋数"
Series.X.DataField = "日龄" 'X轴绑定到产品列
Series.Y.DataField = "合格蛋数" 'Y轴绑定到数量列
Series = Chart.SeriesList.Add() '增加第二个图系
Series.Text = "受精蛋"
Series.X.DataField = "日龄" 'X轴绑定到产品列
Series.Y.DataField = "受精蛋" 'Y轴绑定到数量列
Chart.LegendVisible = True '显示图列
Chart.LegendCompass= CompassEnum.South '图列显示在南方(底端)