Example E126
Visible to All Users

How to show a tooltip with a series point's data

Files to look at:

This example demonstrates how to display custom information from the underlying data source in a tooltip for every series point.

See also:
- E258;
- E2483;
- E2188.

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)

Example Code

CustomInfoInTooltips/Form1.cs(vb)
C#
using System; using System.Windows.Forms; namespace CustomInfoInTooltips { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { // TODO: This line of code loads data into the 'nwindDataSet.Products' table. You can move, or remove it, as needed. this.productsTableAdapter.Fill(this.nwindDataSet.Products); chartControl1.Series[0].CrosshairLabelPattern = "Unit price: {UnitPrice}\r\n" + "Units in stock: {UnitsInStock}\r\n" + "Quantity per unit: {QuantityPerUnit}"; } } }

Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.