[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Collapse]ASP.NET WebForms Controls
   Getting Started
  [Expand]Grid View
  [Expand]Tree List
  [Expand]Card View
  [Expand]Reporting
  [Collapse]Chart Control
   [Expand]Product Information
   [Expand]Getting Started
   [Expand]Fundamentals
   [Expand]Concepts
   [Expand]Design-Time Features
   [Expand]Visual Elements
   [Collapse]Examples
     How to: Add a Chart to a Web Application
     How to: Add a Chart to a Web Page (Runtime Sample)
     How to: Add a Chart to an ASPxCallbackPanel during its Callback (Runtime Sample)
     How to: Bind an Individual Series to a Data Source (Runtime Sample)
     How to: Bind a Web Chart to Data (Runtime Sample)
     How to: Bind a Web Chart to an ASPxPivotGrid
     How to: Show Custom Data Over a Web Chart Using ASPxPopupControl
     How to: Use the Client-Side Model of the WebChartControl
     How to: Show Custom Tooltips for a WebChartControl
     How to: Invoke the Client Chart Designer
     How to: Configure a Chart for Printing
  [Expand]Pivot Grid
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Scheduler
  [Expand]Site Navigation and Layout
  [Expand]HTML Editor
  [Expand]Gauges
  [Expand]Vertical Grid
  [Expand]Data Editors
  [Expand]Docking and Popups
  [Expand]File Management
  [Expand]Data and Image Navigation
  [Expand]Multi-Use Site Controls
  [Expand]Spell Checker
  [Expand]Query Builder
 [Expand]ASP.NET MVC Extensions
 [Expand]Localization
 [Expand]Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

How to: Show Custom Data Over a Web Chart Using ASPxPopupControl

This example demonstrates how to show custom data obtained from a WebChartControl's data source, when a series point is hovered with the mouse. This can be implemented, using the ASPxPopupControl, with the ASPxCallbackPanel being placed in it, so that data is obtained during its callbacks.

Show Me

A complete sample project is available in the DevExpress Code Examples database at http://www.devexpress.com/example=E258.

To implement tooltips for a Web chart, do the following.

  1. Create a new ASP.NET Web Application (Visual Studio 2010, 2012, 2013, 2015 or 2017), or open an existing ones.

  2. Drop a chart onto the Web page, and bind it to a data source.

  3. From the DX.18.1: Navigation & Layout toolbox tab, drop an ASPxPopupControl onto the page.

    Set its ASPxPopupControlBase.ClientInstanceName property to pc.

  4. Then, from the same toolbox tab, drop an ASPxCallbackPanel onto the ASPxPopupControl1.

    Set its ASPxPanelBase.ClientInstanceName property to cbp.

  5. Now, switch to the DX.18.1: Common Controls toolbox tab, and place two ASPxLabel controls within the ASPxCallbackPanel1.

  6. Now, select the ASPxCallbackPanel1, and click its smart tag. In its actions list, click Client-Side Events... link.

    In the invoked dialog, handle the CallbackClientSideEventsBase.EndCallback event in the following way.

  7. In a similar way, click the chart's smart tag, and in its actions list, click Client-Side Events... link.

    In the invoked dialog, handle the ChartClientSideEvents.ObjectSelected event in the following way.

  8. Now, handle the ASPxCallbackPanel.Callback event in the following way.

  9. And, write the following code into the ASPxPanelBase.CustomJSProperties event handler.

Run the application, and view the result.

Expanded See Also

Is this topic helpful?​​​​​​​