ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Charts and Charting in Excel (https://www.excelbanter.com/charts-charting-excel/)
-   -   how can i make a squared chart area (https://www.excelbanter.com/charts-charting-excel/134503-how-can-i-make-squared-chart-area.html)

squared chart area

how can i make a squared chart area
 
Hi,
am drowing lorenz curve and i need to make the length of the X-Axis of my
chart exactly equals the length of the Y-Axis.


Andy Pope

how can i make a squared chart area
 
Hi,

To make sure the area is exactly equal will need a little VBA code.
Select the chart and run this routine.

Sub SquarePlotarea()

With ActiveChart.PlotArea
.Width = .Height
If .Width < .Height Then .Height = .Width
End With

End Sub

Cheers
Andy

squared chart area wrote:
Hi,
am drowing lorenz curve and i need to make the length of the X-Axis of my
chart exactly equals the length of the Y-Axis.



All times are GMT +1. The time now is 07:36 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com