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

Outer and Inner Labels

3 Answers 47 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.
Ægir
Top achievements
Rank 1
Ægir asked on 18 Apr 2015, 02:20 PM

How do I apply inner labels like shown under "Outer and Inner Labels" here: 

http://www.telerik.com/android-ui/chart 

 

3 Answers, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 20 Apr 2015, 03:46 PM
Hi Aegir,

Thanks for the question.
You need to call axis.setLabelLayoutMode(AxisLabelLayoutMode.INNER);

Please write again if you have more questions.

Regards,
Victor
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
Ægir Laufdal
Top achievements
Rank 1
answered on 20 Apr 2015, 04:41 PM
Thanks, how do I place the labels under the lines like in the picture? (labelMargin only works from the left side)
0
Victor
Telerik team
answered on 22 Apr 2015, 04:14 PM
Hi Aegir,

Thanks for writing.
The labels can not be positioned lower or higher out of the box. If your data will be fixed in the vertical dimension you can get away with text annotations that are placed below the lines instead of using the axis labels.

Otherwise you will have to inherit the axis label renderer and override the rendering so that the labels are offset further down.

If the annotations approach is not acceptable I can help you with the axis label renderer should you have difficulties.

Regards,
Victor
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
Chart
Asked by
Ægir
Top achievements
Rank 1
Answers by
Victor
Telerik team
Ægir Laufdal
Top achievements
Rank 1
Share this question
or