Different borders on every bar, is it possible?

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
mLapido
Newbie
Newbie
Posts: 24
Joined: Wed Mar 24, 2004 5:00 am
Location: Brasil
Contact:

Different borders on every bar, is it possible?

Post by mLapido » Wed Jan 05, 2005 5:44 pm

I need to have a different border on one or more of the bars in a bar chart. Is it possible/how do I do it.

best regards,
Milton Lapido

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

Post by Narcís » Fri Jan 07, 2005 9:37 am

Hi Milton,

Yes, this can be done implementing the OnGetBarStyle event you can use something like:

Code: Select all

  if ValueIndex=1 then
    Sender.Pen.Width:=3
  else
    Sender.Pen.Width:=1;
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

Post Reply