I have problem with DataTable
Here are the pictures:
http://www.cijoint.fr/cjlink.php?file=c ... th66PH.jpg
http://www.cijoint.fr/cjlink.php?file=c ... DXAunS.jpg
With the datatable there is no mars month.
I don't understand why

Thanks for help
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
![]() ![]() ![]() ![]() ![]() ![]() |
Instructions - How to post in this forum |
Code: Select all
if ChartTool1.Active then
Chart1.MarginLeft:=0;
Code: Select all
uses DateUtils;
procedure TForm4.FormCreate(Sender: TObject);
var i: Integer;
dt: TDateTime;
tmp: String;
begin
Series1.XValues.DateTime:=true;
Chart1.Axes.Bottom.DateTimeFormat:='mmm yy';
for i := 1 to 12 do
begin
dt:=EncodeDate(2009, i, 1);
DateTimeToString(tmp, 'mmm yy', dt);
Series1.AddXY(dt, random, tmp);
Series2.AddXY(dt, random);
end;
Chart1.MarginUnits:=muPixels;
end;
procedure TForm4.FormResize(Sender: TObject);
var i, tmpWidth: Integer;
begin
tmpWidth:=Chart1.Canvas.TextWidth(Chart1[0].Name);
for i:=0 to Chart1[0].Count-1 do
begin
tmpWidth:=tmpWidth+Chart1.Canvas.TextWidth(Chart1[0].Labels[i]);
end;
tmpWidth:=tmpWidth+Chart1.MarginLeft+Chart1.MarginRight+Chart1[0].Count*15;
if (tmpWidth > Form4.Width) then
begin
Chart1.Align:=alNone;
Chart1.Width:=tmpWidth;
end
else
Chart1.Align:=alClient;
end;
![]() | Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) |
![]() ![]() ![]() ![]() ![]() ![]() |
Please read our Bug Fixing Policy |