Dont want chart to include origin

ThomasOES

Board Regular
Joined
Aug 29, 2017
Messages
174
Hello

My xyScatter chart has an annoying habit of always including the origin. Often I'm only interested in the immediate range of the data being plotted.
Is there a method to disregard the origin? I've included the code for the chart data. I would like a chart property that "zooms" in on the data range.


'ActiveChart.SeriesCollection.NewSeries
' ActiveChart.FullSeriesCollection(1).Select
' With Selection
' .XValues = Range("StdCalc")
' .Values = Range("StdVal")
' .MarkerStyle = xlMarkerStyleX
' .MarkerSize = 10
' .MarkerForegroundColor = RGB(0, 0, 200)
' End With

Thanks for any advice

Tom
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Hi Tom

Set the maximum and minimum values for the axes according to the values.

For ex.
- if the values in the X axis have a minimum value of 21.34 set the minimum for the X axis equal to 21 or 20.
- if the values in the Y axis have a maximum value of 43.56 set the maximum for the Y axis equal to 44 or 45.

This way you define the range that you see as a rectangle that includes all the values but not much more.

(the axes properties are .MaximumScale and .MinimumScale)
 
Upvote 0

Forum statistics

Threads
1,216,123
Messages
6,128,975
Members
449,480
Latest member
yesitisasport

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top