How to contruc that will adjust itself x & Y axis automatically and provided cosistent graphs all teh time for other values.

Chaturvedi, Santosh 400 Reputation points
2026-08-27T15:01:26.05+00:00

Hello --

I have one situation that i have to generate the graph many times where the x & y axis values are changing every time. The settings for one graph is not same as for others and therfore the graphs is not consistants every time.

I have constructed with SPARLINES. But this have limitations, this will show only one set of values not two sets on x& Y axis.

Can you suggest how to contruct teh graph that every time shows the simple line diagram as shown below

(The data below are hypothetical )

User's image

Microsoft 365 and Office | Excel | For home | Windows
0 comments No comments

Answer accepted by question author
Kai-H 26,385 Reputation points Microsoft External Staff Moderator
2026-08-28T08:36:35.1566667+00:00

Hi, Chaturvedi, Santosh

Sparklines are not suitable here because they do not provide true numeric X and Y axes. An XY (Scatter) chart with straight lines and markers is the better choice. Unlike a regular Line chart, an XY chart treats both axes as numeric values.

Arrange each graph’s data in two columns:

X value Y value

2,000,000 91.02

7,781,792 57.87

15,563,585 57.87

Select both columns, then choose Insert > Scatter (X, Y) > Scatter with Straight Lines and Markers. Right-click each axis, select Format Axis, and make sure Minimum, Maximum, and Major unit are set to Automatic. Excel will then recalculate the scale whenever the source values change.

It is also recommended that you convert the source range to an Excel Table using Ctrl+T before creating the chart. This allows the chart to include newly added rows automatically.

For a consistent appearance, create and format one chart, then copy it for the other datasets and only change its X and Y ranges through Chart Design > Select Data. If the values vary by several orders of magnitude, consider enabling Logarithmic scale under Format Axis, provided the data contains no zero or negative values.

Thank you for your patience in reading, I hope this information has been helpful to you. 


If the answer is helpful, please click "Yes" and kindly upvote it. If you have extra questions about this answer, please click "Comment."    

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread. 

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Oldest

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.