Skip to content

Displays values from the underlying data source within crosshair labels in a WinForms Chart.

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/winforms-chart-crosshair-label

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WinForms Chart – Display Data Source Values in Crosshair Labels

This example displays values from the underlying data source within crosshair labels in a WinForms Chart. When a user hovers over a chart element, the crosshair cursor appears and shows relevant data source values for the selected point. This feature allows users to explore precise data without additional tooltips or legend lookups.

Display Data Source Values in Crosshair Labels - WinForms Chart Control, DevExpress

Implementation Details

Use the CrosshairLabelPattern property to specify a crosshair label pattern:

void Form1_Load(object sender, EventArgs e) {
    chartControl1.Series[0].CrosshairLabelPattern = "Unit price: {UnitPrice}\r\n" +
                                                    "Units in stock: {UnitsInStock}\r\n" +
                                                    "Quantity per unit: {QuantityPerUnit}";
}

Files to Review

Does this example address your development requirements/objectives?

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

About

Displays values from the underlying data source within crosshair labels in a WinForms Chart.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •