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 not find the solution
Contact Support
RC
Rex Concepcion
DS
Durgadevi Selvaraj
Hi Rex,
We have included C# code for the above. Please refer the
code in the above Kb.
Regards,
Durgadevi S
how to do it in code?