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

Programmically Control Label Connectors

2 Answers 20 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 01 May 2014, 09:23 PM
Is there a way to control the label connectors through binding or otherwise? It seems the datacontext for the connector is the same bound object as the chart and not the point. (RadCartesianChart) I'd like to selectively hide labels with a datatemplate but the connectors remain.

2 Answers, 1 is accepted

Sort by
0
Mike
Top achievements
Rank 1
answered on 01 May 2014, 09:33 PM
Another approach could be to bind to the showlabels on the line series but this isn't a dependency property.
0
Petar Marchev
Telerik team
answered on 02 May 2014, 08:47 AM
Hi Mike,

In RadCartesianChart the connectors for a single series are drawn by a single Path, so you can either hide all of them or show them all. You should be able to achieve this with the LabelConnectorsSettings property, or as you mentioned the ShowLabels property. I just verified that the ShowLabels is a dependency property defined in the base ChartSeries class. Let us know if we can be of further help.

Regards,
Petar Marchev
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
ChartView
Asked by
Mike
Top achievements
Rank 1
Answers by
Mike
Top achievements
Rank 1
Petar Marchev
Telerik team
Share this question
or