Page 1 of 1

Labels in a Radar chart

Posted: Fri Mar 14, 2008 11:41 am
by 9527001
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

Posted: Fri Mar 14, 2008 11:45 am
by narcis
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

Posted: Wed Mar 19, 2008 5:20 pm
by 9527001
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

Posted: Thu Mar 20, 2008 8:46 am
by narcis
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