Skip to content

Commit a3ee8c4

Browse files
Update Readme.md
1 parent ac913fa commit a3ee8c4

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

Readme.md

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,19 @@
44
[![](https://img.shields.io/badge/📖_How_to_use_DevExpress_Examples-e9f6fc?style=flat-square)](https://docs.devexpress.com/GeneralInformation/403183)
55
[![](https://img.shields.io/badge/💬_Leave_Feedback-feecdd?style=flat-square)](#does-this-example-address-your-development-requirementsobjectives)
66
<!-- default badges end -->
7-
<!-- default file list -->
8-
*Files to look at*:
7+
# Chart for WPF - How to Create a Custom Tooltip for a Series Point
98

10-
* [MainWindow.xaml](./CS/ToolTipPointTemplate/MainWindow.xaml) (VB: [MainWindow.xaml](./VB/ToolTipPointTemplate/MainWindow.xaml))
11-
* [MainWindow.xaml.cs](./CS/ToolTipPointTemplate/MainWindow.xaml.cs) (VB: [MainWindow.xaml.vb](./VB/ToolTipPointTemplate/MainWindow.xaml.vb))
12-
<!-- default file list end -->
13-
# How to provide a custom tooltip for a series point
14-
15-
16-
<p>This example shows how to implement a custom tooltip that displays another chart with a GDP history for the selected country when hovering over a bar. </p><p>To accomplish this, it is necessary to create the<strong> System.Windows.DataTemplate </strong>object that specifies the custom tooltip appearance, and assign it to the <a href="http://help.devexpress.com/#WPF/DevExpressXpfChartsSeries_ToolTipPointTemplatetopic"><u>Series.ToolTipPointTemplate</u></a> property. </p><p>You also need to bind both charts to the GDP datasource and write the GetDataSource() and GetGDPs() methods. These methods allow you to get the GDP data from a datasource for each selected country to display it on a chart tooltip. </p>
9+
This example implements a custom tooltip that displays another chart with a GDP history for the selected country when hovering over a bar.
1710

11+
![chart](./images/chart.png)
1812

19-
<h3>Description</h3>
13+
## Implementation Details
2014

21-
<p><br />
22-
</p>
23-
24-
<br/>
15+
The `System.Windows.DataTemplate` object specifies the custom tooltip appearance. The object is assigned to the [Series.ToolTipPointTemplate](https://docs.devexpress.com/WPF/DevExpress.Xpf.Charts.Series.ToolTipPointTemplate) property. The `GetDataSource()` and `GetGDPs()` methods supply charts with data from the GDP datasource.
2516

17+
## Files to Review
18+
* [MainWindow.xaml](./CS/ToolTipPointTemplate/MainWindow.xaml) (VB: [MainWindow.xaml](./VB/ToolTipPointTemplate/MainWindow.xaml))
19+
* [MainWindow.xaml.cs](./CS/ToolTipPointTemplate/MainWindow.xaml.cs) (VB: [MainWindow.xaml.vb](./VB/ToolTipPointTemplate/MainWindow.xaml.vb))
2620

2721
<!-- feedback -->
2822
## Does this example address your development requirements/objectives?

0 commit comments

Comments
 (0)