最后加上
Chart.AxisX.AnnoWithLabels = True '启用字符标示
Dim Chart As WinForm.Chart '
Dim Series As WinForm.ChartSeries '
Dim t As Table = Tables("窗口2_收支表") '
Chart = Forms("窗口2").Controls("Chart1") '
Chart.ChartType = ChartTypeEnum.Bubble
Chart.SeriesList.Clear() '
Series = Chart.SeriesList.Add() '
Series.Length = t.Rows.Count '
Series.MarkShape = MarkShapeEnum.Dot '
Series.MarkColor = Color.Red '
Series.LinePattern = LinePatternEnum.None '
For i As Integer = 0 To t.Rows.Count - 1 '
Series.X(i) = i '
Series.Y(i) = t.Rows(i)("总数") '
Series.Y1(i) = t.Rows(i)("收入数") '
Chart.AxisX.SetValueLabel(i, t.Rows(i)("月份")) '
Next
Chart.AxisX.AnnoWithLabels = True
没有任何问题
[此贴子已经被作者于2024/3/30 11:34:38编辑过]
这个效果看些不怪,没有帮助效果,请帮纠正,还有请帮加上标题?