Back to Devexpress

How to: Use the Client-Side Model of the WebChartControl

aspnet-7785-components-chart-control-examples-how-to-use-the-client-side-model-of-the-webchartcontrol.md

latest1.8 KB
Original Source

How to: Use the Client-Side Model of the WebChartControl

  • Dec 27, 2023
  • 2 minutes to read

This tutorial demonstrates how to use the client-side API of the WebChartControl. In particular, it explains how to convert the point coordinates into the diagram coordinates, and display them on the client side.

To obtain point coordinates converted to diagram coordinates on the client side, do the following.

  1. Create a new ASP.NET Web Application or open an existing one.

  2. Drop a WebChartControl onto the page, and enable its WebChartControl.EnableClientSideAPI property.

  3. Drop an ASPxRoundPanel from the DX.25.2: Navigation & Layout toolbox tab onto the page.

  4. Select the chart and click its smart tag. In its Tasks list, choose Client-Side Events….

Run the application and view the result.

In a similar way, it is possible to obtain the diagram coordinates of a series (e.g., Line Chart).

See Also

Concepts

How to: Add a Chart to an ASPxCallbackPanel during its Callback (Runtime Sample)

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