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

Pie Series How to display legends and ChartTooltipBehavior not working - Xamarin.Forms

1 Answer 98 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sudha
Top achievements
Rank 1
Sudha asked on 11 Apr 2017, 02:15 PM

Hi,

How to display legends? and ChartTooltipBehavior is not working. what am I doing wrong here? P.S. I'm using the trial version.

in C#:

var pieChart = new RadPieChart
                    {
                        HeightRequest = 300,
                        Palette = customColor,
                        SelectionPalette = customSelectedColor,

                    };

                    pieChart.Behaviors.Add(new ChartTooltipBehavior
                    {
                        TriggerMode = ToolTipTriggerMode.Tap,
                    });
                    var series = new PieSeries
                    {
                        ItemsSource = ChartData,
                        ShowLabels = true,
                    };
                    //series.LabelBinding = new PropertyNameDataPointBinding("Name");
                    series.ValueBinding = new PropertyNameDataPointBinding("Value");

                    pieChart.Series.Add(series);

Thanks

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 13 Apr 2017, 07:44 AM
Hello,

You would need to create the legend for the chart manually, you can find this demonstrated in the QSF demos application from your installation located in : <install_folder>\Telerik\UI for Xamarin<version>\QSF. The example is Chart -> Pie Series. 

As for the tooltip behavior, please have a look at this help topic, which demonstrates how to activate it and let us know if you've been able to run it on your side. 

Regards,
Nikolay
Telerik by Progress
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
General Discussions
Asked by
Sudha
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or