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

Hiding Value Labels for dynamically generated series

3 Answers 279 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Michael Epley
Top achievements
Rank 1
Michael Epley asked on 11 Sep 2010, 12:53 AM
I am utilizing DataGroupColumn to dynamically create multiple series groupings based on my data. My line charts display properly, but  I can't figure out how to hide the Value labels for all the series.
I see references to using
            -  Series[0].Appearance.ShowLabels = false.  But, since there are no explicit series created, this doesn't work. 

I've attached an image to demonstrate the issue.
thanks for the help.


Also, I just tried the following in the ItemDatBound event, and it does not seem to affect the display at all (IE: the labels still show up)

            foreach (ChartSeries s in myChart.Series) {
                s.Appearance.ShowLabels = false;
                s.DefaultLabelValue = "";
}

3 Answers, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 15 Sep 2010, 04:04 PM
Hi Michael Epley,

Thanks for contacting us. Why don't you try with turning off the LabelAppearance property of the chart series like this:
chartSeries.Appearance.LabelAppearance.Visible = false; 

You can do this for every dynamically generated series if you wire the DataBound event of RadChart. The series are already available, so you can modify them.

Hope this helps.

Best wishes,
Evgenia
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Myth
Top achievements
Rank 1
answered on 02 Mar 2013, 04:49 PM
How to do this in the stand alone report designer? When you don't have access to code-behind?

Kind regards,
Stijn
0
Ves
Telerik team
answered on 06 Mar 2013, 04:13 PM
Hi Stijn,

If you create your ChartSeries and set their DataYColumn property, the chart will not create new series dynamically, but it will use the ones you have defined. This way you will be able to configure the labels visibility in the property grid.

Alternatively, you can check our new Graph Report Item.


Best regards,
Ves
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Chart (Obsolete)
Asked by
Michael Epley
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Myth
Top achievements
Rank 1
Ves
Telerik team
Share this question
or