3

I want to adjust the X axis of my scatter diagram according to my diagram points in MS-Excel 2010. I have seen in some guides that I can change it by editing the "Axis Labels" in "Select Data". As you can see in the picture below, this button is not activated for me. In the diagram I want to change the X axis labels to (0.8 1.0 1.3 1.5 1.7).

Sample Data

5

It's irregular not to show normal axis labels, because it may cause a lack of comprehension in whoever is reading the chart. I know I would be distracted thinking, "Why did he choose to do that?" But people ask all kinds of questions.

So here is how you'd do what you want.

Add a column of data with all zeros. This will produce a series of data points along the horizontal axis.

Make your chart with all the data (below left).

Adjust your axis as desired (below right).

data and beginning of chart formatting

Hide the horizontal axis labels. Best way is to use custom number format of " " (single space surrounded by double quotes), so there will be room for the data labels without having to manually adjust the plot area size. (top left chart below).

Select the series along the axis, and add data labels. Excel adds Y value labels (all zero) above or left of the points. (top right chart below).

Format the data labels: Select the option to show Y values and deselect other options; select the "below" position; use a number format with one decimal digit. (bottom left chart below).

Delete the legend, and reformat the series along the X axis so it mimics an axis (medium gray line, cross markers using medium gray border and no fill). (bottom right chart below).

enter image description here

  • Clever. I was focusing on the gridlines because that's how the OP displayed the problem, but the actual question wording was about the axis labels. – fixer1234 Dec 27 '15 at 23:06
2

This answer deals with Excel-2013, but I suspect Excel-2010 (if that indeed is what you are using) is similar enough that it shouldn't matter. To edit the scale of your axis, right-click on it and select format axis:

enter image description here

This should bring up a dialog containing several choices, to set the interval between the gridlines go to:

Axis Options -> Axis Options -> Units

enter image description here

The major unit sets the interval between major gridlines, and the minor unit sets the interval between minor gridlines. I hope this helped :)

  • Dear Eirikdaude, thank you very much for your answer. The problem with the method you explained is that it produces more numbers in axis including the numbers I need. However, I want only the numbers I have specified would be shown in the axis labels which do not have constant increment steps. Do you have any comments to this? Thanks in advance – Hamed Dec 1 '15 at 11:06
  • @Hamed, EirikDaude's solution is proper. Why do you only want to show some labels? – Jon Peltier Dec 27 '15 at 20:55
  • Dear Jon. Both solutions are perfect but since I need to only a few numbers regarding to the specific available tab widths, I needed only to have the available ones in my chart. I could easily do it in Minitab but there was a lot of other graphical restrictions with that software. With the line diagram in execl, I could not show the trend easily. – Hamed Jan 7 '16 at 8:03
2

If I understand your problem correctly, it looks like you have data at an irregular interval, and you want to plot it as XY data but have the X axis grid lines match the X values of the data. That can't be done natively in Excel, and actually defeats the purpose of using a scatter chart.

Line Chart

If you aren't concerned with displaying the data proportionally on the X axis, you can use a line chart:

line chart

This treats the X values as categories and simply stacks the Y values next to each other at a uniform interval on the chart. Notice that you get the actual X values displayed but every point is at an equal interval even though the X values are not. If the X value of the last point was 100, it still would be plotted at the same location as the 1.7.

Scatter Chart

A scatter, or XY, chart plots the X values proportionally. The grids are at fixed intervals to provide a way to visualize the proportionality of the data. That's why the grid lines don't run through all of your data points. You can actually force Excel to plot "apparent" grid lines where you want:

XY chart

This was done by starting at 0.78 and using an interval of 0.24. When you round the X axis values to one decimal place, they display the values you want. However, the grids are still in proportional locations and you can see that the grid lines don't actually run through the data points (except for 1.5, which happened to work out to be an exact X value).

Other Solutions

LCD Grid Lines

If the data lends itself to this solution, which it does in this example, you can use a grid line interval that is a "lowest common denominator" interval to pass through every point:

LCD

This keeps everything proportional plus labels every point. It even adds visual clues to the proportionality of the X values because you can see the number of intervening lines.

Manual Grid Lines

As mentioned earlier, uniform grid lines allow the reader to visualize the proportional nature of the data's X locations. If you need grid lines running through every point, you could manually add them (draw them in), for all points that don't fall on a standard grid line. If you need only those lines, set the X axis to have no grid lines and manually add each one you want. Keep in mind that readers are used to seeing XY data having uniform grid lines, so your chart will be a bit of an optical illusion and people might consider it "misleading".

Data Labels

If the goal is just to display the actual X values so they can be read directly from the chart, the normal way to do that would be to use standard grid lines and add data labels where needed.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.