serie and label in a TDBChart v 7.12

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Clara Genermont
Newbie
Newbie
Posts: 42
Joined: Mon Jun 11, 2007 12:00 am
Contact:

serie and label in a TDBChart v 7.12

Post by Clara Genermont » Thu Sep 25, 2008 2:23 pm

Hi Narcis,

In fact, I work with a TDBChart and in the table,
I have a field MOIS (integer) and
I would put this label in clear at runtime :

Here is the code :

Code: Select all

  
--
--
const
  LibelMois: array[1..12] of string = ('janvier', 'février', 'mars', 'avril',
    'mai', 'juin', 'juillet', 'août', 'septembre', 'octobre', 'novembre', 'décembre');

--
Chart1[0].XLabelsSource := LibelMois[StrToInt('MOIS')];
--
--
But doesn't functions...


Is there any solution to solve this concern avoiding the calculated field ?


Thank you very much for your help

Didou

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

Post by Narcís » Thu Sep 25, 2008 2:56 pm

Hi Didou,

You could try using Labels ValueList (Series1.Labels) using its Assign or Add methods.
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