1.设置X轴滚动条
// 设置X轴默认选中的值范围 this.chartData.ChartAreas[0].AxisX.ScaleView.Zoom(0, 10); // 启用相关的 Chart 属性 this.chartData.ChartAreas[0].CursorX.IsUserEnabled = false; this.chartData.ChartAreas[0].CursorX.IsUserSelectionEnabled = false; this.chartData.ChartAreas[0].AxisX.ScaleView.Zoomable = true; // 将滚动内嵌到坐标轴中 this.chartData.ChartAreas[0].AxisX.ScrollBar.IsPositionedInside = true; // 设置滚动条的大小 this.chartData.ChartAreas[0].AxisX.ScrollBar.Size = 15; // 设置滚动条的按钮的风格 this.chartData.ChartAreas[0].AxisX.ScrollBar.ButtonStyle = ScrollBarButtonStyles.SmallScroll;
Me_Code
时间: 2024-11-13 09:42:11