excel chart x & y axis dynamic based on data

r1100r

New Member
Joined
Jun 15, 2015
Messages
1
I have 2 sheets in a workbook.
sheet 1 (named Data) has the data
column A is the X axis
Column B and C have the dual Y axis data
sheet 2 (named graph) but the chart is Chart 1
I update the columns A B & C from and external program using C#
I need the scales to update according to the data setting the min and max for the Y axis(s) plus a small amount outside
the actual min and max (a buffer from the edge of the chart)
as well as the X axis
The major unit can be dynamic based on the data (Y)
X axis is years from 10 to 30
I am comfortable with VBA code
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

Forum statistics

Threads
1,203,462
Messages
6,055,562
Members
444,799
Latest member
CraigCrowhurst

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