How to set the duration for WPF Chart (SfChart) tooltip?
In this document, you will learn how to set the duration for displaying tooltips in a WPF Chart (SfChart) using the 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:
The value of the ShowDuration property should be set in milliseconds.
Conclusion
I hope you enjoyed learning how to set the duration for WPF Chart tooltip.
You can refer to our WPF Chart feature tour page know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications. You can also explore our WPF Chart Examples to understand how to create and manipulate data.
For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion®, you can try our 30-day free trial to check out our other controls.
If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!