LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6,582
Default Chart incorrectly displays time of day on x-axis

You've run into an arbitrary constant that's been designed into Excel.
According to "How Chart Axis Limits Are Determined"
(http://support.microsoft.com/kb/214075):

"If the difference between yMax and yMin is greater than 16.667 percent of
the value of yMax, the automatic maximum for the y-axis is zero."

This means yMin / yMax should be greater than 5/6 (0.833333333) or Excel
will use 0 for yMin

6:30:00 pm / 10:12:00 pm = 0.770833333333 / 0.925000000000 = 0.833333333333

Phew, barely makes it.

6:30:00 pm / 10:12:05 pm = 0.770833333333 / 0.925057870370 = 0.833281201126

Oops, his doesn't make it.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services, Inc.
http://PeltierTech.com/WordPress/
_______


"SPH1967" wrote in message
...
I have a problem when trying to display a graph of time vs. value.

If the number of data elements is less than or equal to 2665, the graph
displays correctly. The data is centered on the x-axis.

However, if I try to display more than 2665 elements, the x-axis on the
graph forces itself to display a full 24 hours (12AM to 12AM) even though
my
data is from around 630PM to 1012PM. The chart then looks strange and is
difficult to read.

To duplicate this, simply create two columns of data:

6:30:00 PM 1
6:30:05 PM 2
6:30:10 PM 3
6:30:15 PM 4
6:30:20 PM 5
6:30:25 PM 6
...
10:11:50 PM 2663
10:11:55 PM 2664
10:12:00 PM 2665


Extend this all the way down to row 2665. Create an XY scatter graph of
all
data from row 1 to row 3000. The chart displays the x-axis correctly
(from
6pm to 1048pm) and centers the data nicely. Add one more row of data (on
row
2666) and the chart then gets screwed up.

Any ideas what might be causing this?

Thanks in advance.



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cell displays #'s incorrectly PJ in Fla Excel Discussion (Misc queries) 3 June 12th 08 05:20 PM
XY Scatter Chart with X-axis displays the Category Name Max Charts and Charting in Excel 2 October 1st 07 01:59 PM
Calendar Control 9.0 displays incorrectly on other machines tmirelle Excel Discussion (Misc queries) 3 January 31st 07 09:43 PM
TO CREATE A LINE CHART WITH RATE IN Y AXIS & REAL TIME IN X AXIS vijaicbe Charts and Charting in Excel 4 November 9th 06 10:16 AM
date in Excel displays incorrectly when merged in letter Feather 52 Excel Discussion (Misc queries) 1 March 13th 06 10:36 PM


All times are GMT +1. The time now is 04:59 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"