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;
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说教育文库chart控件使用(2)在线全文阅读。
相关推荐: