tags:

views:

366

answers:

2

When Excel determines the axis values it will use to represent your data in a chart, the values are 'evenly distributed'.

For Example: If you plot the following series in an Excel Line Chart. [0.22,0.33,0.44,0.55,0.66,0.77,0.88,0.99,1.1,1.21,1.32,1.43,1.54,1.65,1.76,1.87,1.98,2.09,2.2] Excel determines that the y-axis values should be [0,0.5,1,1.5,2,2.5].

What technique or formula is used to determine these values ?

A: 

Please have a look at:

http://stackoverflow.com/questions/611878/reasonable-optimized-chart-scaling

And

http://stackoverflow.com/questions/361681/algorithm-for-nice-grid-line-intervals-on-a-graph

There are more questions like this.

Gamecat
I thought the question was about Excel?
JeffP
Burmudar probably meant just like Excel. I just provided the links, and did not flag the question as duplicate which it isn't. Made it CW because its just link so I do not deserve the credit ;-).
Gamecat
+1  A: 

After doing some experiementing, I conclude that Excel:

1) It will keep the Y axis starting at zero unless you explicitly tell it otherwise

2) It will set the Y axis max one major tick higher than your largest value

3) The last part seems more arbitrary - it clearly has "preferred" units (.1, .2, .5, 1, 2, 5, 10, 50, 100, etc) that it will choose for the major tick. It will use the smallest preferred unit that will result in between 5 and 10 major ticks, meeting the requirements above.

JeffP