# help with graph scaling

#### mcb7722

##### New Member
I have two sets of data, one which reflects the other exactly (ie one is stock in Eaches, the other is stock in weeks of supply)

When plotting the two data sets for most of my graphs (300 SKU's) there is a slight difference is the auto scaling.

How can I set up the chart so there appears to be only one line, even though both sets of data are there on top of each other perfectly?

### Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.

#### mcb7722

##### New Member
I have the graph set up with dual y-axis, so the left axis is set to eaches and the right is set to weeks

#### mcb7722

##### New Member
Is there any way to set the max value of the scale on both y-axis to be 110% of the maximum value?

ex

EA y-axis = max(range of EA)*1.1
wks y-axis = max(range of wks)*1.1

#### mcb7722

##### New Member
Figured it out......

Sheets("Data Chart").Select
With ActiveChart.Axes(xlValue)
.MinimumScale = 0
.MaximumScale = value
.MinorUnitIsAuto = True
.MajorUnitIsAuto = True
End With

Replies
12
Views
399
Replies
0
Views
825
Replies
0
Views
856
Replies
12
Views
2K
Replies
0
Views
336

1,191,177
Messages
5,985,139
Members
439,941
Latest member
robertv13

### 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.

### Which adblocker are you using?

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

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