Radchart Series LabelMode

1 Answer 81 Views
ChartView
George C.
Top achievements
Rank 2
Iron
Veteran
George C. asked on 04 Jun 2021, 05:18 AM

Greetings.

Is it possible to change the Radchart Series LabelMode programmatically ?

Unlike some properties such as ShowLabels, LabelMode isn't listed in the series properties.

1 Answer, 1 is accepted

Sort by
1
Accepted
Nadya | Tech Support Engineer
Telerik team
answered on 04 Jun 2021, 06:34 AM

Hello, George,

According to the provided information, it is not clear which is the series type that you use. Can you please clarify that?

Note, due to the specifics of each series type the LabelMode property is applicable for BarSeries and PieSeries. In the BarSeries there is an enumeration of three options: Default, Center, and Top. In the PieSeries the enum contains two options: Horizontal and Radial.

BarSeries barSeries = new BarSeries();
barSeries.LabelMode = BarLabelModes.Center;

PieSeries pieSeries = new PieSeries();
pieSeries.LabelMode = PieLabelModes.Radial;

You are right that there is missing information about the LabelMode property in our documentation. We would address it accordingly.

In case you are using a different series, it would be greatly appreciated if you can provide more information about what is the exact goal that you want to achieve with the labels. It would be helpful if you can demonstrate it with a picture. 

I hope this information is useful. Please let me know if I can assist you further.

Regards,
Nadya
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

George C.
Top achievements
Rank 2
Iron
Veteran
commented on 05 Jun 2021, 11:52 AM

Hello, Nadya.

I'm using PieSeries, and I added data points manually. With the hint you provided me with, I solved the issue on my side :

Dim pieS = DirectCast(RadChartView1..Series.Item(0), PieSeries)
pieS .LabelMode = PieLabelModes.Horizontal
RadChartView1.Refresh()

(I used to directly change the property of RadChartView1..Series.Item(0))
Tags
ChartView
Asked by
George C.
Top achievements
Rank 2
Iron
Veteran
Answers by
Nadya | Tech Support Engineer
Telerik team
Share this question
or