How to set showduration for ChartViewSeries Tooltip

2 posts, 0 answers
  1. Giorgio
    Giorgio avatar
    1 posts
    Member since:
    May 2015

    Posted 23 Jun 2015 Link to this post

    Hi telerik Team,

    I want to make longer the duration of tool tip visibility in a piechart, I tried several solutions but nothing seems to work.

    Settings the show duration in ChartTooltipBehavior I obtain another tooltip.

    here is my xaml:


    <telerikui:RadPieChart x:Name="telerikPieChart"
                           d:DataContext="{Binding Source={d:DesignInstance design:PieChartSeriesDC, IsDesignTimeCreatable=True}, Path=Series}">
            <telerikcv:ChartTooltipBehavior ShowDuration="3600" />
            <telerikcv:DoughnutSeries ItemsSource="{Binding Children}" ValueBinding="Value"
                                      DefaultSliceStyle="{StaticResource PieSliceStyle}" ShowLabels="True">
                <Border Background="Black" Opacity="0.9" CornerRadius="5" Height="Auto"
                    <StackPanel Margin="6">
                        <StackPanel Orientation="Vertical">
                            <TextBlock Foreground="White" Grid.Row="0" FontSize="13" HorizontalAlignment="Center" FontWeight="Bold" TextWrapping="Wrap">
                                    <MultiBinding StringFormat="{}{0}  {1:P2}">
                                        <Binding Path="DataItem.Label" />
                                        <Binding Path="DataItem.Percentage" />
                            <ListView Grid.Row="1" ItemsSource="{Binding DataItem.Children}" Height="Auto" Background="Transparent" BorderThickness="0" Focusable="False">
                                                <ColumnDefinition Width="5"/>
                                            <TextBlock Text="{Binding Label}" Grid.Column="0"
                                                       HorizontalAlignment="Left" Foreground="White" Background="Transparent"/>
                                            <TextBlock Grid.Column="2"
                                                       HorizontalAlignment="Right" Foreground="White" Background="Transparent">
                                                    <!--<MultiBinding StringFormat="{}{0:0.00}M€({1:P2})" >-->
                                                    <!--<Binding Path="Value" />-->
                                                    <MultiBinding StringFormat="{}{0:P2}" >
                                                        <Binding Path="PercentageAncestor" />
            <telerikcv:PieChartSmartLabelsStrategy DisplayMode="Spider"/>


    How can I set the show duration on the right tooltip?



  2. Martin Ivanov
    Martin Ivanov avatar
    1452 posts

    Posted 24 Jun 2015 Link to this post

    Hello Giorgio,

    Thank you for the code. I used it to test the reported issue but I wasn't able to reproduce a behavior where second tooltip occurs. Using the ShowDuration property is the way to adjust the tooltip's display duration. However, can you prepare an isolated project demonstrating the described behavior and send it over? This will allow me to test it locally and investigate what is causing the issue.

    Thank you for any help you can provide.

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