How to show Legend in Donutchart

3 posts, 0 answers
  1. Tarun
    Tarun avatar
    2 posts
    Member since:
    Jan 2015

    Posted 03 Feb 2015 Link to this post

    I was using your example, and in ChartSelectionFragment

     this.indicatorLegend = Util.getLayoutPart(this.rootView, R.id.indicators_chart_legend, RadLegendView.class);
    it gives me this error
    com.telerik.android.common.exceptions.MissingLayoutPartException: Layout part with id 2131361912 is missing from the specified layout.

    Regards,
    Tarun


  2. Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 06 Feb 2015 Link to this post

    Hi Tarun,

    Just make sure you have a RadLegendView  instance with ID indicators_chart_legend in the XML file used to inflate your root view. The problem is that currently this element is missing.

    I hope this helps.

    Regards,
    Deyan
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. DevCraft banner
  4. Tarun
    Tarun avatar
    2 posts
    Member since:
    Jan 2015

    Posted 06 Feb 2015 in reply to Deyan Link to this post

    Hi Deyan,

    Thanks for the reply.
    It does have solved my problem.
    Thanks once again.
Back to Top