Log scale axis labels amendment in Excel

2

I have a bar chart in Excel which I want to have in log10 scale. As the values are in % I get axis labels at 1%, 10%, and 100%. Is there a way to add labels at 20%, 30%, etc., I can't find a natural way to do it. Thanks!

ferros

Posted 2017-01-26T08:50:51.253

Reputation: 21

Do you want 1-10 in 1's and 10-100 in 10's? Also does your scale stop at 100%? – dav – 2017-01-26T13:19:24.467

The scale is from 0 (effectively 0, not exactly 0 since it's log) to 100% (0-1 in natural values). So yeah precisely, the best would be what you mention, 1-10 in 1's and 10-100 in 10's (the issue is that for non-technical viewers the scale is confusing without more labeling). I guess once I know a general way to do it I can fiddle with it further. – ferros – 2017-01-26T13:34:05.100

Answers

2

Excel doesn't do this naturally (that I know of), but its easy enough to accomplish with some creative charting. Once you have your basic chart set, you'll add an additional series to use for your axis labels.

  1. Add a data series to your worksheet for your data labels. You'll be converting this series to an XY/Scatter chart so you'll need to columns of data.

    For the X values, enter your preferred labels (for a basic log chart, I'd do every other number e.g. all evens or odds, otherwise you'll have overlaps at the high end of the range).

    For the Y values, enter 0 for the corresponding X values-this will place the label points on the axis.

  2. Add a data series to your chart, then change the series chart type to XY/Scatter.

  3. Modify your new series from step 2 using the data columns from step 1. So your new X values should be your label points, and your Y values should be 0.

  4. Format your new series to taste. Since these are labels, and not data points, probably turn off markers and lines.

  5. Add labels to your new data series, and format to taste.

  6. Turn off your default axis labels and the secondary horizontal and vertical axis.

When done, it could look something like this (I left the default axis on for reference)log scale labels:

One advantage of this is that you can have a value for any point of interest (not just regular scale markers), like pi referenced in the image above. It's also easy to add visual indicators (e.g. average values) with error bars from the data points, like this:

log scale labels with average

dav

Posted 2017-01-26T08:50:51.253

Reputation: 8 378