Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
pittpanther
 
Posts: n/a
Default Manually Setting Date/Time Range of Axis

I have an XY chart that takes data from two columns. The 1st column is a
production amount (in cubic yards), while the second is the corresponding
date/time.

The data is plotted as expected (x = date/time, y = production). The
workbook is automatically opened on a shift basis, to generate a shift
report. As such, the data in the columns that the chart is looking at
changes each time it is run. The problem with this is the time range on the
x axis is not maximized for the date/time range in the column (i.e.: it
shows a larger range than required). I would like to manually set the range
of the x axis to maximize the viewable area of the chart, but it looks like
Excel represents this in some floating point format.

Is there anyway I can prorammatically change the range of a chart to
accommodate this requirement?

Thanks!
  #2   Report Post  
Jon Peltier
 
Posts: n/a
Default

The following article was written with a line chart in mind, but the
same approach can be used with an XY chart:

http://pubs.logicalexpressions.com/P...cle.asp?ID=246

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______


pittpanther wrote:

I have an XY chart that takes data from two columns. The 1st column is a
production amount (in cubic yards), while the second is the corresponding
date/time.

The data is plotted as expected (x = date/time, y = production). The
workbook is automatically opened on a shift basis, to generate a shift
report. As such, the data in the columns that the chart is looking at
changes each time it is run. The problem with this is the time range on the
x axis is not maximized for the date/time range in the column (i.e.: it
shows a larger range than required). I would like to manually set the range
of the x axis to maximize the viewable area of the chart, but it looks like
Excel represents this in some floating point format.

Is there anyway I can prorammatically change the range of a chart to
accommodate this requirement?

Thanks!

Reply
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
Setting the magnification to a range of cell's ceemo Excel Discussion (Misc queries) 3 August 19th 05 01:53 PM
How do I edit a Named Range using macro's behmer Excel Worksheet Functions 2 July 26th 05 09:02 PM
Counting empty cells within a range of cells Rosehill - ExcelForums.com New Users to Excel 2 May 2nd 05 08:53 AM
Reveal cell formats and extendable range in tool/statusbar/icon. Danny O'Hern ([email protected]) Excel Worksheet Functions 0 April 29th 05 01:16 PM
Counting empty cells within a range of cells Rosehill - ExcelForums.com New Users to Excel 0 April 7th 05 12:47 AM


All times are GMT +1. The time now is 08:01 AM.

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

About Us

"It's about Microsoft Excel"