The macro recorder is giving the same code for adding the title for the X and Y axis. On the Y-axis I want 'Age' and on the X-axis 'Year', but after going through the recorder it gives this:
ActiveChart.Axes(xlValue, xlPrimary).AxisTitle.Text = "Age"
ActiveChart.Axes(xlValue, xlPrimary).AxisTitle.Text = "Year"
When the program is run, there is nothing in the X-axis title, and 'Year' in the Y-axis. How do I diversity the codes so that the correct title goes to the correct axis?
~G.
Each axis is a line on a chart that together define its structure and which the data plotted on the graph is measured against. The Y axis is the vertical access, in other words the one that goes up and down. The X access is horizontal and so it goes across a chart. The Y axis is sometimes known as the value axis. Having an axis is common on scatter diagrams or X-Y Charts, bar charts and others. You do not have one on a pie chart.
the horizontal axis for chart is called X-axis.
after creating your graph go to the layout tab, axis title then choose either horizontal or vertical axis
The independent variable is on the horizontal axis.
The "x-axis" usually refers to the horizontal axis. In Excel, that would be relevant for graphs created with Excel.
It is the horizontal line at the bottom of the chart.
No, it's the horizontal axis (x-axis).
The horizontal axis is the one going across the bottom of a chart. It can be the X axis in some kinds of charts or the category axis in other kinds of charts.
no
Grid lines.
on the horizontal axis!
It is a horizontal axis
The Y axis is the vertical access, in other words the one that goes up and down. The X access is horizontal and so it goes across a chart. The Y axis is sometimes known as the value axis.