Different colours in the same TBarSeries value

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
RichardS
Newbie
Newbie
Posts: 6
Joined: Mon Feb 26, 2007 12:00 am

Different colours in the same TBarSeries value

Post by RichardS » Wed May 09, 2007 8:25 am

Hello - is there a way, using a standard TBarSeries, to colour each bar differently in different sections?

For example, if I had a bar with a value of £120, I'd like the lower portion of the bar up to 100 to be one colour, and the portion of the bar from 100 to 120 to be a different colour. This is to show the relative "risk" associated with different portions of an income.

I know I can probably create something similar using a combination of series and stacking, but I wondered if there was a simple way to do it using a single series.

Many thanks,

Richard Stevens
BOE
(Using TeeChart 7 on Delphi 7)

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed May 09, 2007 8:37 am

Hi Richard,
I know I can probably create something similar using a combination of series and stacking, but I wondered if there was a simple way to do it using a single series.
Not that I can think of. The only way to achieve that is using stacked bar series.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

RichardS
Newbie
Newbie
Posts: 6
Joined: Mon Feb 26, 2007 12:00 am

Post by RichardS » Wed May 09, 2007 8:41 am

Thanks for your quick reply.

Post Reply