Drofidnas
Board Regular
- Joined
- Jun 30, 2004
- Messages
- 126
Hi
I have a dynamic range which populates a pie chart with up to 5 values:
Not Started - blue
Complete - green
At Validation - orange
Overdue - red
In Progress - yellow
If any of the values are zero, the range contracts so I don't get a null slice. Basic stuff.
What is happening though is that the assigned colours for the slices are not staying with their respective definitions, rather they are fixed to the SeriesCollection.Points, regardless of what is missing and where.
ie if Not started and Complete are zero then At Validation will be the first SeriesCollection(1).Point(1) and be blue, Overdue (2) will be green and In Progress (3) orange.
As a workaround, I've tried to programmatically change the colours but I can't find how to say for example:
(Clearly this is invalid!)
So
a. is there a way to fix the colours with the SeriesCollections or failing that
b. what is the correct syntax for identifying a SeriesCollection name?
Thanks in advance
Chris
I have a dynamic range which populates a pie chart with up to 5 values:
Not Started - blue
Complete - green
At Validation - orange
Overdue - red
In Progress - yellow
If any of the values are zero, the range contracts so I don't get a null slice. Basic stuff.
What is happening though is that the assigned colours for the slices are not staying with their respective definitions, rather they are fixed to the SeriesCollection.Points, regardless of what is missing and where.
ie if Not started and Complete are zero then At Validation will be the first SeriesCollection(1).Point(1) and be blue, Overdue (2) will be green and In Progress (3) orange.
As a workaround, I've tried to programmatically change the colours but I can't find how to say for example:
Code:
If SeriesCollection(1).Points(1).Value = "Not Started" Then
ActiveChart.SeriesCollection(1).Points(1).Select
With Selection.Format.Fill
.ForeColor.RGB = RGB(255, 255, 0)
End With
End If
(Clearly this is invalid!)
So
a. is there a way to fix the colours with the SeriesCollections or failing that
b. what is the correct syntax for identifying a SeriesCollection name?
Thanks in advance
Chris
Last edited: