Chad
Chad

Reputation: 24689

VS2010 Chart Control: Reduce Y-Axis Margin

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

alt text

Upvotes: 4

Views: 4083

Answers (2)

Binh Bui
Binh Bui

Reputation: 1

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

Upvotes: 0

VJK
VJK

Reputation: 532

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.

Upvotes: 7

Related Questions