PC Review


Reply
Thread Tools Rate Thread

change color of curve line as time changes

 
 
cliffordjf
Guest
Posts: n/a
 
      8th Dec 2009
I have a series of values associated with dates; the values in the past are
fact, the values in the future are estimates. When I graph the data, the
line is all the same color throughout the series. Is there a way to have the
color of the line change as the dates become past, rather than future....

in other words, the line is black through todays data, but turns to red from
tomorrow on, then as tomorrows comes, that part of the line turns from red to
black...

thanx

cjf
 
Reply With Quote
 
 
 
 
Bernard Liengme
Guest
Posts: n/a
 
      9th Dec 2009
You will need two series. Suppose dates are in A2:A100, values to plot in
B2:B100
In C1 use =IF(A1<=TODAY(),B2,NA())
In D1 use =IF(A1>TODAY(),B2,NA())
Copy both down their columns
Quickest way is to select all data and make your chart, then delete the line
in the cart for column B (or use CTRL to select A, C and D)

Visit Jon Peltier and look at his 'conditional chart' material
http://peltiertech.com/Excel/Charts/...nalChart1.html

best wishes
--
Bernard Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme

"cliffordjf" <(E-Mail Removed)> wrote in message
news667E7EE-30DA-4CA2-AF3E-(E-Mail Removed)...
>I have a series of values associated with dates; the values in the past
>are
> fact, the values in the future are estimates. When I graph the data, the
> line is all the same color throughout the series. Is there a way to have
> the
> color of the line change as the dates become past, rather than future....
>
> in other words, the line is black through todays data, but turns to red
> from
> tomorrow on, then as tomorrows comes, that part of the line turns from red
> to
> black...
>
> thanx
>
> cjf


 
Reply With Quote
 
Herbert Seidenberg
Guest
Posts: n/a
 
      30th Dec 2009
Excel 2007, PivotTable, PivotChart
Three colors, one series.
With Macro.
http://c0444202.cdn.cloudfiles.racks...12_29_09b.xlsm
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling curve-line feature at run time =?Utf-8?B?QnJvYWRiYW5kIEFs?= Microsoft Excel Programming 1 10th Dec 2006 03:55 PM
How to change color of line and point markers on a line graph =?Utf-8?B?U0FTUGVyc29u?= Microsoft Excel Charting 1 15th Nov 2006 06:43 PM
Make a line in a bar chart, and change color of any bars that exceed the line MarkM Microsoft Excel Misc 4 5th Jul 2006 04:06 PM
make ToDo items change color when completed in time line view mod =?Utf-8?B?U2VyZ2lvIFBhcGluaQ==?= Microsoft Outlook Installation 0 9th Dec 2005 10:47 PM
watch a curve change over time like a movie =?Utf-8?B?UmFuZHlCYXJyZXR0?= Microsoft Excel Charting 6 19th Feb 2005 05:00 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:39 PM.