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

RadPieChart Tooltip to each slide

2 Answers 87 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Jones
Top achievements
Rank 1
Jones asked on 23 Jun 2017, 02:49 PM

Hi all,

I have a RadPieChart with some values, I have a legend with the name of this values and I need set a tooltip to each slide with the names i have in this legend, but i nee do it programatically in C#.

I tried do it with the nameof List<string> that i have to set the legends, but i have no success.

 

RadChart.Series[0].LabelDefinitions.Add(new ChartSeriesLabelDefinition()
            {
                Margin = new Thickness(-5, 0, 0, 0),
                Binding = new PropertyNameDataPointBinding(SeriesName[0])
            });

            RadChart.Series[0].LegendSettings = new DataPointLegendSettings();
            RadChart.Series[0].LegendSettings.TitleBinding = new PropertyNameDataPointBinding(CategoryName);

            RadChart.Series[0].ToolTip = new PropertyNameDataPointBinding(CategoryName); 

2 Answers, 1 is accepted

Sort by
0
Jones
Top achievements
Rank 1
answered on 27 Jun 2017, 07:30 PM
Don't have any reply??
0
Martin Ivanov
Telerik team
answered on 28 Jun 2017, 02:48 PM
Hello Jones,

In order to achieve your requirement you can use the chart's tooltip behavior.

Regards,
Martin Ivanov
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
Chart
Asked by
Jones
Top achievements
Rank 1
Answers by
Jones
Top achievements
Rank 1
Martin Ivanov
Telerik team
Share this question
or