VS2010 Chart Control: Reduce Y-Axis Margin

2020-07-20 09:17发布

问题:

How do I reduce the width of the left margin area shown below, marked in red?

回答1:

Try something like this:

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.



回答2:

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