LocationRect Property, Rect Object Example

The example increases the size of the chart plot using the LocationRect property and the x and y properties of the Rect object.

Private Sub Command1_Click()
   ' Increase the size of the chart plot.
   MSChart1.Plot.AutoLayout = False
   With MSChart1.Plot.LocationRect
      .Min.x = .Min.x * 1.2
      .Min.y = .Min.y * 1.2
      .Max.x = .Max.x * 1.2
      .Max.y = .Max.y * 1.2
   End With
End Sub