chart控件使用

loading 分享 2026-7-24 下载文档

显示3维图形代码示例

chart1.ChartAreas[0].Area3DStyle.Enable3D = true;//启用3维图表区 chart1.ChartAreas[0].Area3DStyle.Rotation = 30;//设置图表区绕Y轴倾斜旋转的角度

chart1.ChartAreas[0].Area3DStyle.Inclination = 50;//设置图表区绕X轴倾斜和旋转的角度 5游标的设置

chart1.ChartAreas[0].CursorX.IsUserEnabled = true;

chart1.ChartAreas[0].CursorX.IsUserSelectionEnabled = true; chart1.ChartAreas[0].AxisX.ScaleView.Zoomable = true; //

chart1.ChartAreas[0].AxisX.ScrollBar.IsPositionedInside = true; // Zoom into the X axis

chart1.ChartAreas[0].AxisX.ScaleView.Zoom(2, 3); // 设置滚动条的大小

chart1.ChartAreas[0].AxisX.ScrollBar.Size = 10; 设置图表标题和轴坐标

图表标题

Title t = new Title(\数据曲线图\);

t.Alignment = ContentAlignment.TopCenter;//轴标题对齐 t.TextOrientation = TextOrientation.Horizontal;//文本方向 t.Font=new System.Drawing.Font(\黑体\, 15, FontStyle.Bold); chart1.Titles.Add(t); 轴标题设置

chart1.ChartAreas[0].AxisX.Title = \数值1\;

chart1.ChartAreas[0].AxisX.TitleFont = new Font(\宋体“FontStyle.Bold);

chart1.ChartAreas[0].AxisX.TitleForeColor = Color.Red;


chart控件使用.doc 将本文的Word文档下载到电脑
搜索更多关于: chart控件使用 的文档
相关推荐
相关阅读