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

Series Labels in spline chart

1 Answer 28 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jose
Top achievements
Rank 1
Jose asked on 15 Dec 2009, 04:16 PM
I have this chart in the report, but i need the series's look how in this  PDF which the name of the series is in the chart (plot area),i want put the name on my chart in the yellow area marked.



I need have the names, in the chart of the report , how the chart on my asp.net control.

PD: My chart is attached

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 16 Dec 2009, 02:57 PM
Hi Jose,

You can use the ChartSeriesItem Label.TextBlock.Text property to accomplish this e.g.:

foreach (Product lst in products)
           {
               ChartSeriesItem item = new ChartSeriesItem();
               item.YValue = (double)lst.QuantityInStock;
               item.Name = (string)lst.Name;
               item.Label.TextBlock.Text = (string)lst.Name + " - #%";
               serie.Items.Add(item);
           }


Regards,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
Jose
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or