The chart control for ASP.NET applications.
public class WebChartControl : ASPxDataWebControl, IChartContainer, IChartRenderProvider, IChartDataProvider, IChartEventsProvider, IChartInteractionProvider, ISupportInitialize, ICustomTypeDescriptor, ICoreReference, IRequiresLoadPostDataControl, IEndInitAccessor, ISharePointEmptyDesignTimeControl
Public Class WebChartControl Inherits ASPxDataWebControl Implements IChartContainer, IChartRenderProvider, IChartDataProvider, IChartEventsProvider, IChartInteractionProvider, ISupportInitialize, ICustomTypeDescriptor, ICoreReference, IRequiresLoadPostDataControl, IEndInitAccessor, ISharePointEmptyDesignTimeControl
The WebChartControl class is the control used to embed charts into Web pages.
In general, the WebChartControl provides the same functionality as the ChartControl, taking into account the specifics of the ASP.NET environment. In particular, note that there are some restrictions on using Web charts in the Medium Trust permission level. For more information, refer to Concepts.
To provide data for the WebChartControl, you first need to create a data source (any object which implements either the IList, IListSource or IBindingList interfaces), and then use either the ASPxDataWebControlBase.DataSourceID property at design time, or programmatically populate the data source and assign it to your chart’s ASPxDataWebControlBase.DataSource property.
The subsequent steps are similar to the ones for the ChartControl, as explained in Providing Data.
For code examples, refer to:
- 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 a Web Chart to Data (Runtime Sample)