Skip to main content

ChartControl Class

Represents the Chart control for Silverlight applications.

Namespace: DevExpress.Xpf.Charts

Assembly: DevExpress.Xpf.Charts.v14.2.dll

#Declaration

[SupportDXTheme(TypeInAssembly = typeof(ChartControl))]
[TemplatePart(Name = "PART_NavigationLayer", Type = typeof(NavigationLayer))]
[DataAccessMetadata("TypedDataSet,EntityFramework,LinqToSql,IEnumerable", DataSourceProperty = "DataSource")]
[DXToolboxBrowsable]
public class ChartControl :
    Control,
    IChartElement,
    IOwnedElement,
    INotificationOwner,
    ICoreReference,
    IWeakEventListener,
    IDockTarget,
    IEventArgsConverterSource,
    IPrintableControl

#Returned By

The ChartToolTipEventArgs.ChartControl property returns an instance of ChartControl.

#Remarks

The ChartControl class represents a visual control intended for graphical data representation.

A chart control is comprised of separate elements, such as diagram, series, axes, legend, etc. To learn more about them, refer to Visual Elements.

The ChartControl class can represent data from different kinds of data sources, that should be assigned to the Series.DataSource property of a chart's series. Then, it's required to specify which data fields should be used as points arguments (Series.ArgumentDataMember) and which fields, as point values (Series.ValueDataMember).

If separate series have compatible types (that is, they evoke the same diagram type), they can be combined in the same diagram (and the chart control, as well).

#Implements

See Also