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

Translate x-axis pixel value to x-label value

1 Answer 66 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Carmen
Top achievements
Rank 1
Carmen asked on 21 Dec 2015, 02:58 PM

If I move an annotation and have the new x-axis pixel position, how could I get the equivalent X-Axis label value so I can update the data structure and "snap" the moved annotation into its proper place. 

Thanks,

Carmen

1 Answer, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 23 Dec 2015, 02:44 PM
Hi Carmen,

Thank you for your question.

You can get a label content the following way given that you have its position:

axis.getModel().getLabels().get(index).getContent()

I hope this information helps. Let us know if you need further assistance.

Regards,
Todor
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
Chart
Asked by
Carmen
Top achievements
Rank 1
Answers by
Todor
Telerik team
Share this question
or