hi,
i'm new and i need help creating a spider chart displayed in the following image.
it's necessary to create mor than 2 axes (4 sections). how do i create such a chart?
Spider Chart
Hi.
For actual chart you can use polar series with one of pre-defined brush styles. Adding custom axes is a bit more tricky, but I guess it could be done by manually drawing required arrows directly on chart Canvas by using one of it's drawing methods (Arrow or even combination of lineto+moveto). Please note that all drawing code should be placed in one of the Chart events. There are several examples about drawing custom objects available in Teechart demo. Also, several topics in this forum address similar problems when user has to manuallly draw objects on chart Canvas.
For actual chart you can use polar series with one of pre-defined brush styles. Adding custom axes is a bit more tricky, but I guess it could be done by manually drawing required arrows directly on chart Canvas by using one of it's drawing methods (Arrow or even combination of lineto+moveto). Please note that all drawing code should be placed in one of the Chart events. There are several examples about drawing custom objects available in Teechart demo. Also, several topics in this forum address similar problems when user has to manuallly draw objects on chart Canvas.
Marjan Slatinek,
http://www.steema.com
http://www.steema.com
the arrows on the axes are not really important.
the important thing is that i get more axes than those shown in the image following.
i used a TPolarSeries, which works fine. but how do i get additional axes like in the image in my first post. (two 45° axes)
this is the point which have to be solved!
the important thing is that i get more axes than those shown in the image following.
i used a TPolarSeries, which works fine. but how do i get additional axes like in the image in my first post. (two 45° axes)
this is the point which have to be solved!
Hi,
axes is a bit more tricky, but I guess it could be done by manually drawing required arrows directly on chart Canvas by using one of it's drawing methods (Arrow or even combination of lineto+moveto).
There's no way to add these axis type directly.
As Marjan said :i used a TPolarSeries, which works fine. but how do i get additional axes like in the image in my first post. (two 45° axes)
axes is a bit more tricky, but I guess it could be done by manually drawing required arrows directly on chart Canvas by using one of it's drawing methods (Arrow or even combination of lineto+moveto).
There's no way to add these axis type directly.
Pep Jorge
http://support.steema.com
http://support.steema.com
Hi,
you could use similar code to the following :
you could use similar code to the following :
Code: Select all
procedure TForm1.Chart1AfterDraw(Sender: TObject);
begin
with Chart1 do
begin
Canvas.Pen.Width := 2;
Canvas.MoveTo(Chart1.Axes.Bottom.IStartPos,Chart1.Axes.Bottom.PosAxis);
Canvas.LineTo(Chart1.Axes.bottom.IEndPos-50,55);
end;
end;
Pep Jorge
http://support.steema.com
http://support.steema.com
sorry, but this code doesn't work!Pep wrote:Hi,
you could use similar code to the following :Code: Select all
procedure TForm1.Chart1AfterDraw(Sender: TObject); begin with Chart1 do begin Canvas.Pen.Width := 2; Canvas.MoveTo(Chart1.Axes.Bottom.IStartPos,Chart1.Axes.Bottom.PosAxis); Canvas.LineTo(Chart1.Axes.bottom.IEndPos-50,55); end; end;
the compiler does not know "Chart1.Axes.Bottom"!
i'm using D6 Enterprise with TeeChart 5.02
Hi,
Chart1.BottomAxis
In that case you must use the old one (which still existing in the latest versions) :the compiler does not know "Chart1.Axes.Bottom"!
i'm using D6 Enterprise with TeeChart 5.02
Chart1.BottomAxis
Pep Jorge
http://support.steema.com
http://support.steema.com