Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 1
Default Highlighting Operating Hours

I have an XY scatter plot of temperature inside an office building throughout
different times of day across a 3 week period. What I would like to see are
coloured bars that highlight when the office is open (operating hours).

I tried adding colour-filled rectangles with 50% transparency, but I am
having printing issues. It looks fine on screen, but when I go to print the
bars are scaled differently than the chart thus they don't line up properly.
I think this might be a bug in Excel. This issue comes and goes; sometimes it
prints OK, most of the time it doesn't (and I haven't changed any settings!)

Is there a better way to do this? I must admit, using the coloured-bars is
very tedious. If there is a more elegant way to colour-code the chart then I
am all for it!

Thanks,

Rebecca
  #3   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 1
Default Highlighting Operating Hours


Hi Andy,

The x-axis is dates & times. The y-axis is temperature values. I don't see
how I can use a stacked bar graph for this.

Thanks!

Rebecca


"Andy Pope" wrote:

Hi,

Rather than shapes use a combination chart. An additional series plotted as
column chart is probably the simplest solution.
See Jon's example of vertical bands which should give you a starting point.

http://peltiertech.com/Excel/Charts/...ticalBand.html

If not post back with details of x-axis values. Dates or numbers?

Cheers
Andy
--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
"Rebecca R" <Rebecca wrote in message
...
I have an XY scatter plot of temperature inside an office building
throughout
different times of day across a 3 week period. What I would like to see
are
coloured bars that highlight when the office is open (operating hours).

I tried adding colour-filled rectangles with 50% transparency, but I am
having printing issues. It looks fine on screen, but when I go to print
the
bars are scaled differently than the chart thus they don't line up
properly.
I think this might be a bug in Excel. This issue comes and goes; sometimes
it
prints OK, most of the time it doesn't (and I haven't changed any
settings!)

Is there a better way to do this? I must admit, using the coloured-bars is
very tedious. If there is a more elegant way to colour-code the chart
then I
am all for it!

Thanks,

Rebecca


  #4   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 560
Default Highlighting Operating Hours


On Fri, 17 Aug 2007, in microsoft.public.excel.charting,
Rebecca R said:

"Andy Pope" wrote:
Rather than shapes use a combination chart. An additional series plotted as
column chart is probably the simplest solution.
See Jon's example of vertical bands which should give you a starting point.


The x-axis is dates & times. The y-axis is temperature values. I don't see
how I can use a stacked bar graph for this.


Don't worry, the horizontal bar chart will have its own axes separate
from the scatter chart. So its "y-axis" (actually its x-axis) can be one
category, and it "x-axis" will be the hours the office is open and
closed. Study Jon's example, and adapt it to your case; I'm confident it
will work for you.

To see how this can make a time marker for your office opening and
closing, see this other example of Jon's, using the same technique:

http://peltiertech.com/Excel/Charts/GanttChart.html

It's like your office "open" and "closed" hours are two tasks in a Gantt
chart, only we really want them to fill the background, to make a field
on which the scatter markers are displayed.

But if it really bothers you, there is an alternative. Instead of a
stacked horizontal bar chart, use a stacked area chart with a
"Time-scale" x-axis instead. It will still have to have its own x and y
axes separate from the scatter chart, but at least it will be oriented
the same way for you instead of at right angles.

Whereas the horizontal stack bar design will have as many series as
there are cycles of opening and closing, there will be a lot of series
in that method, which you would delete from the legend if you are using
a legend. The stacked area method has only two series, one for "open"
and one for "closed" (it could have only one, with the background
standing for the alternative). In this scheme you would make one series
maximum when the office is open and zero when it is closed, and vice
versa for the other. Taking advantage of the Time-scales ability to do
vertical lines, you would repeat a time at opening and closing time,
like this:

Open Closed
22 100% 0
22 0 100%
23 0 100%
23 100% 0

At time "22" the "Open" area goes vertically down from 100% to 0, and
then at time "23" it goes vertically up again from 0 to 100%, and vice
versa for the "Closed" area, making rectangles of open and closed color
that you control from the spreadsheet, instead of having to position
graphical rectangles.

Since your hours are fractions of a day, you won't be able to use the
"Time-scale" in the obvious way, because it doesn't do hours. Just let
the "days" stand for hours or minutes and it will work fine.

--
Del Cotter
NB Personal replies to this post will send email to ,
which goes to a spam folder-- please send your email to del3 instead.
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
Operating on Non Calculated Values Hubie Excel Discussion (Misc queries) 4 April 9th 06 01:49 AM
where is the product code for operating cd jojo Setting up and Configuration of Excel 0 December 25th 05 03:26 PM
Highlighting blanks via GO TO SPECIAL is not highlighting blank cells - HELP, I'm totally stuck. Jamie Furlong Excel Discussion (Misc queries) 6 August 28th 05 09:27 PM
How do I calculate operating expense KAE1994 Excel Worksheet Functions 8 August 23rd 05 09:43 PM
Operating on hidden sheets Hari Prasadh Excel Discussion (Misc queries) 2 January 28th 05 08:33 AM


All times are GMT +1. The time now is 02:06 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"