关于MSChart图像无法正确显示的问题
我这里有一段用MSChart绘图的代码,用VS.NET2003在XP系统下写的,但是很奇怪,放到2000的系统上就显示不出图像(没有报错,就是不出图像),找了很久也没发现是哪里的问题.
请有经验的朋友帮忙解答,谢谢!
下面是部分相关代码:
Private Sub PlotMschart(ByVal asSeriesNames() As Object, ByVal TimeX(,) As Object, ByVal ValueYs(,) As Object)
MSChart.chartType = MSChart20Lib.VtChChartType.VtChChartType2dXY ' set to X Y Scatter chart
MSChart.ChartData = MergeChartArray(TimeX, ValueYs)
MSChart.Plot.UniformAxis = False
MSChart.AllowSeriesSelection = False
MSChart.Plot.Axis(MSChart20Lib.VtChAxisId.VtChAxisIdY).ValueScale.Auto = True
MSChart.Plot.Axis(MSChart20Lib.VtChAxisId.VtChAxisIdX).AxisTitle.Text = "Time(sec)"
'Legend
MSChart.Legend.Location.Visible = True
.
.
.
.
end sub