Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Colouring series below an SLA

Status
Not open for further replies.

JamesToft

Programmer
Aug 13, 2008
1
GB
Hi,

I've got a simple bar chart graph which has a target figure. If one of the bars drops below below the target figure I want to make that particular bar go red.

I've tried using the following code, but that makes all my bars go red.

Sub CustomizeSeriesStyles( baseLayer As AcChartLayer,
+ overlayLayer As AcChartLayer, studyLayers() As AcChartLayer )

Dim seriesStyle As AcChartSeriesStyle

Set seriesStyle = baseLayer.GetSeriesStyle( 1 )
seriesStyle.SetBackgroundColor( Red )

End Sub

Also I don't know how to incorporate my target in there eg if I have a target of 99%.

Thanks in advance for anyones help :)

James
 
What about an IF THEN Statement in a method override

IF The Series Target >=99% Then
seriesSstyle.backgroundcolor = RED
END IF
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top