Page 1 of 1

serie and label in a TDBChart v 7.12

Posted: Thu Sep 25, 2008 2:23 pm
by 9350489
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

Posted: Thu Sep 25, 2008 2:56 pm
by narcis
Hi Didou,

You could try using Labels ValueList (Series1.Labels) using its Assign or Add methods.