Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 66
Default Color Chart Axis

Hi,

I have a chart with the times from 5:00 AM to 11:00 PM in the category Axis.

I would like to have the ability to be able to color the chart in 3
sections.

for example

Opening from 4:00 AM to 12:00 PM = color yellow
Mid from 12:00 PM to 3:00 PM = blue
and so on.

I need a macro cause this time ranges will be manipulated by the user.



Thanks,




  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 90
Default Color Chart Axis

Cesar -

What kind of chart is it? Do you color each hour, or do you need finer
control of the colors?

If your main data is a Line chart, and you need the hours colored, you
could use dummy series, one for each color, using data like this:

yellow blue red
5:00 1
6:00 1
7:00 1
8:00 1
9:00 1
10:00 1
11:00 1
12:00 1
13:00 1

Make these series into a 100% Stacked Column chart, format the fill
colors appropriately, and use no border. Add the rest of the data to
the chart, and series by series change the chart type to Line.

Not much different from these examples:
http://www.geocities.com/jonpeltier/...html#Quadrants
http://www.geocities.com/jonpeltier/....html#VertBand

- Jon
-------
Jon Peltier, Microsoft Excel MVP
http://www.geocities.com/jonpeltier/Excel/index.html
_______

Cesar Zapata wrote:
Hi,

I have a chart with the times from 5:00 AM to 11:00 PM in the category Axis.

I would like to have the ability to be able to color the chart in 3
sections.

for example

Opening from 4:00 AM to 12:00 PM = color yellow
Mid from 12:00 PM to 3:00 PM = blue
and so on.

I need a macro cause this time ranges will be manipulated by the user.



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
Finding second data point on primary axis of two axis chart Al Charbonneau[_2_] Charts and Charting in Excel 1 December 9th 09 11:49 PM
How do I change the color of ONE line on the y-axis in a chart? Merna Charts and Charting in Excel 1 March 25th 08 04:58 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
How to place a secondary y axis bar in a bar chart next to two primary y axis bars? Dmitry Excel Discussion (Misc queries) 3 May 4th 06 01:58 AM
Pivot Table, Line Chart with Secondary Y axis, Page Field selection destroys Y2 axis [email protected] Charts and Charting in Excel 0 July 13th 05 09:30 PM


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