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

Chart Legend with diferent color than series color??

Status
Not open for further replies.

Tilen

Programmer
Apr 2, 2005
75
SI
Hi

please help me.

I have a chart (TChart) with two Bar series. First one has a color $2A2AA5 and second $B48246, dark red and blue. But a Legend for the chart shows symbols (rectangular shapes on the left of series names) in different color. It's always green and red (plain green and red - clGreen,clRed).

Even if I change colors of series, in legend there are always these two colors.

I create a chart with code. It all works OK in chart Editor in design, but not with my code. I can't find any properties to actually define color of symbols in legend, it should take series color.

I juts don't get it.

Please help me,
Thanx

Tilen
 
Sorted.

I use:

Chart1.Series.SeriesColor:=$xxxxx;

for each series and it works.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top