Page 1 of 1

DrawToMetaCanvas in CLX

Posted: Wed Dec 22, 2004 5:42 pm
by 8577233
Hi,

I am using DrawToMetaCanvas to draw the graph on another canvas and when I use also LabelsAngle, the graph is drawn incorrectly. Seem, like it calculate the angle everytime it draws something and the angle is increasing all the time.
Reproduce the error very simple, just start new CLX application, put Tchart on Form1 and one button. On ButtonClick put this code:

procedure TForm1.BitBtn1Click(Sender: TObject);
begin
Chart1.Visible:=false;
Chart1.Axes.Bottom.LabelsAngle:=70;
chart1.DrawToMetaCanvas(Canvas,ClientRect);
end;

To see better the problem, add some BarSerie with more values...

Is this bug, or am I just doing something wrong?

Thanx for replies

Pavel Poles