RadPieChart Tooltip to each slide

3 posts, 0 answers
  1. Jones
    Jones avatar
    5 posts
    Member since:
    May 2017

    Posted 23 Jun Link to this post

    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. Jones
    Jones avatar
    5 posts
    Member since:
    May 2017

    Posted 27 Jun in reply to Jones Link to this post

    Don't have any reply??
  3. Martin Ivanov
    Admin
    Martin Ivanov avatar
    1408 posts

    Posted 28 Jun Link to this post

    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.
Back to Top