Articles in this section
Category / Section

How to set the duration for WPF Chart (SfChart) tooltip?

1 min read

You can set the duration for displaying tooltip in WPF Chart (SfChart) by using ShowDuration property.

XAML

<chart:ColumnSeries x:Name="Series1" Label="Series1"  XBindingPath="Name"
                                   ShowTooltip="True" chart:ChartTooltip.ShowDuration="5000"
                                   YBindingPath="Count1" ItemsSource="{Binding Data}"/>

C#

ColumnSeries series = new ColumnSeries()
{
    ItemsSource = view.Data,
    XBindingPath = "Name",
    YBindingPath = "Count1",
    ShowTooltip = true,
    Label = "Series1"
};
ChartTooltip.SetShowDuration(series, 5000);

 

Note:

You should set values for the ShowDuration property in milliseconds.

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (2)
Please  to leave a comment
RC
Rex Concepcion

how to do it in code?

DS
Durgadevi Selvaraj

Hi Rex,

We have included C# code for the above. Please refer the code in the above Kb.

Regards,

Durgadevi S

Access denied
Access denied