Page 1 of 1

Bottom axis label problem

Posted: Mon Oct 12, 2009 12:35 pm
by 8438817
Hi all

I'm having a chart which bottom axis datetime value is set to "dddhh dd-mm", exact date time is true, multiline is true as well. The first 3 ddd will be converted to the shortname of the day depending on the language of windows. In my case this is dutch. What I would like to have is the shortname in english. How can I achieve this?

I tried to use the OnGetAxisLabel event and replace in there the ddd part to the english day shortname but when I enter this event the ValueIndex is -1 and LabelText parameter is messed up. I read in newsgroup that I had to set the fChart->BottomAxis->LabelStyle to talMark/talText before but this doesn't help (right now it's set to talAuto).
Did I forget to set a parameter somewhere or do I have to convert the total datetime value by myself?
Any Ideas?

Cheers
Karsten

Re: Bottom axis label problem

Posted: Tue Oct 13, 2009 3:26 pm
by yeray
Hi Netsrak,

You can change the strings that delphi uses to display the days of the week as follows:

Code: Select all

  ShortDayNames[1] := 'Mon';
  ShortDayNames[2] := 'Tue';
  ShortDayNames[3] := 'Wed';
  ShortDayNames[4] := 'Thu';
  ShortDayNames[5] := 'Fri';
  ShortDayNames[6] := 'Sat';
  ShortDayNames[7] := 'Sun';