Labels in a Radar chart

TeeChart for ActiveX, COM and ASP
Post Reply
DELINV
Newbie
Newbie
Posts: 2
Joined: Thu May 26, 2005 4:00 am

Labels in a Radar chart

Post by DELINV » Fri Mar 14, 2008 11:41 am

Hello,
I m a newbie so please excuse if my question sounds too trivial. I am trying to get the labels on a Radar chart. Here's my VB code to add the Radar series & populate the points in the chart.

Code: Select all

   
    LoChart.Legend.Visible = True
    LoChart.AddSeries scRadar
    
    With LoChart.Series(0)
        .Title = "Company/User"
        .Add 25, "hello", vbRed
        .Add 35, "ping", vbRed
        .Add 45, "pong", vbRed
        .Add 55, "bingo", vbRed
        .Add 65, "world", vbRed
        .Add 75, "he he", vbRed
        .Color = vbRed
    End With
After this, a hexagon shaped Radar chart is generated. What I would like is to have the label texts "hello", "ping", "pong", etc, added above, to appear in the six corners of the hexagon. Is it possible? I tried various things like setting properties of Axis.Bottom.Labels, Axis.Bottom.Title, etc. Nothing seems to work.

thanks in advance!

-DELINV

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Mar 14, 2008 11:45 am

Hi DELINV,

You need to set CircleLabels as shown here:

Code: Select all

    With LoChart.Series(0)
        .Title = "Company/User"
        .Add 25, "hello", vbRed
        .Add 35, "ping", vbRed
        .Add 45, "pong", vbRed
        .Add 55, "bingo", vbRed
        .Add 65, "world", vbRed
        .Add 75, "he he", vbRed
        .Color = vbRed
        .asRadar.CircleLabels.Visible = True
    End With
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

DELINV
Newbie
Newbie
Posts: 2
Joined: Thu May 26, 2005 4:00 am

Post by DELINV » Wed Mar 19, 2008 5:20 pm

Hello,
Thanks a lot for the quick response. I have two more short questions:

1) When i add two or more series to the radar chart, the circle labels are displayed in anti-clockwise direction. Is it possible to reverse and display it in clockwise direction?

2) Is it possible to change the position of the circle labels? Currently they are very close to the circle and I would like to add some space around the labels to increase readability.

I searched the documentation & the forum, but could not find anything useful for the above problems.


Please note that the above requirements are for a very old project which is still using TeeChart V4. (I cannot migrate it. The new projects use V7)

Thanks in advance!


Thanks,
DELINV

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Mar 20, 2008 8:46 am

Hi DELINV,
1) When i add two or more series to the radar chart, the circle labels are displayed in anti-clockwise direction. Is it possible to reverse and display it in clockwise direction?
Yes, you can set clockwise labels like this:

Code: Select all

    TChart1.Series(0).asRadar.ClockWiseLabels = True
However, I think this property was implemented in v5.
2) Is it possible to change the position of the circle labels? Currently they are very close to the circle and I would like to add some space around the labels to increase readability.
You should be able to do that using the line below. However this property is not public with TeeChart ActiveX. I'll add this to the wish-list to be included in next releases.

Code: Select all

    TChart1.Series(0).asRadar.LabelsMargin = 5
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply