1. X轴的字是斜的,帮助里面的图表是正的,问题在哪里
Dim Chart As WinForm.Chart '定义一个图表变量
Dim Series As WinForm.ChartSeries '定义一个图系变量
Dim t As Table = Tables("银行账务统计_Table1") '定义一个变量t引用数据表
Chart= Forms("银行账务统计").Controls("Chart1") ' 引用窗口中的图表
'Chart.VisualEffect = True '加上这一行,让你的图表更漂亮
Chart.ChartType = ChartTypeEnum.Bar '图表类型该为Bar(条形)
Chart.DataSource = "银行账务统计_Table1" '设置绑定表
Chart.AxisX.AnnoFormatString = "0月"
Chart.SeriesList.Clear() '清除图表原来的图系
Series = Chart.SeriesList.Add() '增加一个图系
Series.FillColor = Color.Yellow '设置条形图的填充颜色
Series.Text = "存款金额"
Series.X.DataField = "月份" 'X轴绑定到产品列
Series.Y.DataField = "存款金额" 'Y轴绑定到数量列
Series.DataLabelText = "{#YVAL}"
Series = Chart.SeriesList.Add() '增加第二个图系
Series.FillColor = Color.Red '设置条形图的填充颜色
Series.Text = "支取金额"
Series.X.DataField = "月份" 'X轴绑定到产品列
Series.Y.DataField = "支取金额" 'Y轴绑定到数量列
Series.DataLabelText = "{#YVAL}"
Series = Chart.SeriesList.Add() '增加第三个图系
Series.FillColor = Color.Lime '设置条形图的填充颜色
Series.Text = "账户余额"
Series.X.DataField = "月份" 'X轴绑定到产品列
Series.Y.DataField = "账户余额" 'Y轴绑定到数量列
Series.DataLabelText = "{#YVAL}"
Chart.LegendVisible = True '显示图列
Chart.LegendCompass= CompassEnum.South '图列显示在南方(底端)
'Series.DataLabelText = "{#YVAL}"
Chart.AxisX.AnnoRotation = - 45 'X轴标示逆时针旋转45度