Page 1 of 1

Re: Bottom axis - change minimum time can not see date edit

Posted: Thu Jan 18, 2007 1:10 am
by 9043243
Hi,

After adding a series line and set bottom axis format as datetime from edit chart, then entering chart->axis->bottom axis->change minmum, sometimes I can see two control edits - time and date, and time edit value is 00:00:00, however, sometime, I can only see time edit, date edit disappears, why this will happen ? if it does happen, how can I get date edit come back ? Thanks

Daniel

Posted: Thu Jan 18, 2007 8:14 am
by narcis
Hi Daniel,

Which TeeChart version are you using?

Thanks in advance.

Posted: Thu Jan 18, 2007 10:44 am
by 9043243
Hi Narcis,

At moment I am using V7.08 standard version. I have just order a pro version, but have not installed yet.

Thanks

Daniel

Posted: Thu Jan 18, 2007 10:49 am
by narcis
Hi Daniel,

Are the series associated to the affected axis set to DateTime XValues? For example:

Code: Select all

  Series1.XValues.DateTime:=true;

Posted: Thu Jan 18, 2007 10:59 am
by narcis
Hi Daniel,

I could finally reproduce what you reported here. This happens when series has not data and by default, the minimum value is a Time value. For example, when you populate series with DateTime values covering several days, as in the code snippet below, both values are available at the editor.

Code: Select all

  Series1.Clear;
  Series1.AddXY(EncodeDate(2007,1,1),random);
  Series1.AddXY(EncodeDate(2007,1,2),random);
  Series1.AddXY(EncodeDate(2007,1,3),random);
  Series1.AddXY(EncodeDate(2007,1,4),random);

Posted: Thu Jan 18, 2007 11:32 pm
by 9043243
Thanks Narcis,

I got it.

Kind regards

Daniel