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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamically Formatting Chart Colours

Status
Not open for further replies.

DiggerDog

Programmer
Nov 24, 2002
60
AU
Hi
I'm using Crystal Reports 10 and need to dynamically format the bars in a chart. I have created a 'team' group in the report and have place a chart in the group header. I need to change the colour of the chart depending on team name.

So If the first instance of the group is 'Red Team' I want the chart bars coloured red, if the next instance is 'Green Team' I wnat the chart bars coloured green, and so on.

Does anybody know if this is possible or do all instances of the chart have to have the same colour bars. (I tried manually changing the colours but these reset every time I refresh the report)

Thanks
 
I believe there is a section in the ChartExpert where you can format a colour based on field and expression (I.e. "If field == RED, color = RED").

Dan Weingart
OEM Technical Manager
Three D Graphics, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top