Here's how to do it:
- Go to the Insert tab and click the Insert Line or Area Chart icon in the Charts group.
- Choose a line graph style (e.g., Line, Line with Markers).
- Right-click inside the chart area and click Select Data.
- Click Add on the left side to enter data for the vertical axis.
- Under Series Name, type the name for the chart series.
- For Series Values, delete the default data, then drag and select the data you want to include for the vertical axis, then click OK.
- Under the Horizontal Axis Labels, click Edit.
- Drag and select the cells containing the desired data for the horizontal axis and click OK.
- Click OK to apply the changes and view the updated chart with data on both axes.
- Left-click on the chart, click the + icon to add axis titles or data labels, and explore other options to customize your chart.