This is a migrated thread and some comments may be shown as answers.

Set label for chartSeries

5 Answers 163 Views
Chart (obsolete as of Q1 2013)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Nadine
Top achievements
Rank 1
Nadine asked on 22 Jan 2009, 02:04 PM
Hello,

actually I try to add a label to a chartSeries... is this possible?

I can do this for an item - but I don't succeed for my Series (Pie)...

If this is not possible - can you tell me how to change the border color of the legend items?
When I add chartSeries to my chart, every legend item gets the same border and fill color. So I can't see to which chartSeries the legend item belongs.

Thank you

Best regards.

Nadine

5 Answers, 1 is accepted

Sort by
0
Dwight
Telerik team
answered on 23 Jan 2009, 07:47 AM
Hi Nadine,

I am not sure I understand the first question. Can you, please, provide a more detailed explanation to what you want to show in the Legend? A sketch will be great, as well.

On the second question, applying color to the legend items should be done on BeforeLayout event, to ensure all required items are generated. Here is a sample code:
public Form1() 
    InitializeComponent(); 
    this.radChart1.BeforeLayout += new EventHandler<EventArgs>(this.radChart1_BeforeLayout); 
 
private void radChart1_BeforeLayout(object sender, EventArgs e) 
    this.radChart1.Legend.Items[0].Appearance.Border.Color = Color.Red; 
    this.radChart1.Legend.Items[0].Appearance.Border.Visible = true

Best regards,
Evtim
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Nadine
Top achievements
Rank 1
answered on 23 Jan 2009, 07:55 AM
Hello,

I'll try to explain it more detailed.

I have a chart an want to add i.e. 2 pie-charts (2 chart series). Then I add several items (pieces) to the pie.
The items have labels which are displayed (i.e. 45%...).
But I want to add a label to each pie additionally (i.e. name of university). Is this possible? Normally this will be displayed in the legend, right? But I would prefer it to display it in a label/title over each pie...

Thanks for your explanation regarding the legend items. I'll try it, if there is no possibility to add labels to the pie charts.

Best regards.

Nadine
0
Ves
Telerik team
answered on 26 Jan 2009, 08:36 AM
Hello Nadine,

Unfortunately, RadChart does not provide the means to display individual pie labels. Please, accept our apologies for the inconvenience caused.

Kind regards,
Ves
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Nadine
Top achievements
Rank 1
answered on 26 Jan 2009, 08:48 AM
Thank you for your reply.

I think, this would be a good feature... perhaps you could consider to realize this in a futurer release?

Best regards.

Nadine
0
Ves
Telerik team
answered on 26 Jan 2009, 08:59 AM
Hello Nadine,

Thanks for this suggestion. I will forward it to our developers for further consideration. Your Telerik points have been updated.

Regards,
Ves
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Chart (obsolete as of Q1 2013)
Asked by
Nadine
Top achievements
Rank 1
Answers by
Dwight
Telerik team
Nadine
Top achievements
Rank 1
Ves
Telerik team
Share this question
or