简体   繁体   English

VS2010图表控制:减少Y轴边距

[英]VS2010 Chart Control: Reduce Y-Axis Margin

How do I reduce the width of the left margin area shown below, marked in red? 如何减小下面显示的左边距区域的宽度,标记为红色?

替代文字

Try something like this: 尝试这样的事情:

Chart.ChartAreas(Chart_ChartArea_ObjectName).InnerPlotPosition = New System.Windows.Forms.DataVisualization.Charting.ElementPosition(3, -2, 94, 96) Chart.ChartAreas(Chart_ChartArea_ObjectName).InnerPlotPosition = New System.Windows.Forms.DataVisualization.Charting.ElementPosition(3,-2,94,96)

Use the GUI property window to get the values right. 使用GUI属性窗口可以正确获取值。

Me.Chart1.Location = New System.Drawing.Point(m_x_reduce,m_y_reduce)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM