‘一个根据窗口副表的数据,产生图表,其中X为“施工单位”,Y轴为“质量比值%”
’现需要按Y轴的大小,从左到右,按从大到小排列。
Dim Chart As New ChartBuilder
Dim Series As WinForm.ChartSeries
Chart.DataSource = e.Form.Name & "_Table2"
Chart.SeriesList.Clear()
Chart.ChartType = ChartTypeEnum.Bar '图表类型该为Bar(条形)
Chart.VisualEffect = True '加上这一行,让你的图表更漂亮
Series = Chart.SeriesList.Add()
Series.X.DataField = "施工单位"
Series.Y.DataField = "质量比值%"
Chart.PrintWidth = 70
Chart.PrintHeight = 50
Chart.SaveImage(ProjectPath & "Images\myimg.wmf")
还有,下面的“图表”能直接输出代码吗
[此贴子已经被作者于2025/2/16 10:46:54编辑过]