Outer and Inner Labels

4 posts, 0 answers
  1. Ægir
    Ægir avatar
    1 posts
    Member since:
    Apr 2015

    Posted 18 Apr 2015 Link to this post

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

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

     

  2. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 20 Apr 2015 Link to this post

    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.

     
  3. DevCraft banner
  4. Ægir Laufdal
    Ægir Laufdal avatar
    1 posts
    Member since:
    Mar 2015

    Posted 20 Apr 2015 in reply to Victor Link to this post

    Thanks, how do I place the labels under the lines like in the picture? (labelMargin only works from the left side)
  5. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 22 Apr 2015 Link to this post

    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.

     
Back to Top
DevCraft banner