VS2010 Chart Control: Reduce Y-Axis Margin

2020-07-20 09:00发布

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

alt text

2条回答
SAY GOODBYE
2楼-- · 2020-07-20 09:23

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.

查看更多
Ridiculous、
3楼-- · 2020-07-20 09:23

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

查看更多
登录 后发表回答