求助!!!我的程序是关于串口通信收集陀螺仪的数据的,其中将采集到的数据通过Chart来绘图。但是用ScrollBar的滚动条时,一按想拉回去看原来画的图滚动条就会消失,这是什么问题
for (int num = 0; num < 3; num++)
{
this.chart1.ChartAreas[num].AxisX.Minimum = 0;
this.chart1.ChartAreas[num].AxisX.Maximum = w;
this.chart1.ChartAreas[num].AxisX.ScrollBar.Enabled = true;
this.chart1.ChartAreas[num].AxisX.ScrollBar.IsPositionedInside = true;
this.chart1.ChartAreas[num].AxisX.ScaleView.Size = w;
this.chart1.ChartAreas[num].AxisX.IsStartedFromZero = true;
this.chart1.ChartAreas[num].AxisX.Interval = w / 10;
this.chart1.ChartAreas[num].AxisX.MajorGrid.LineColor = System.Drawing.Color.Silver;
this.chart1.ChartAreas[num].AxisY.MajorGrid.LineColor = System.Drawing.Color.Silver;