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

How to show Legend in Donutchart

2 Answers 37 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.
Tarun
Top achievements
Rank 1
Tarun asked on 03 Feb 2015, 12:43 PM
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 Answers, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 06 Feb 2015, 09:47 AM
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.

 
0
Tarun
Top achievements
Rank 1
answered on 06 Feb 2015, 12:31 PM
Hi Deyan,

Thanks for the reply.
It does have solved my problem.
Thanks once again.
Tags
Chart
Asked by
Tarun
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Tarun
Top achievements
Rank 1
Share this question
or