The requested page is not available for the requested platform. You are viewing the content for Default platform.

WebChartControl.CustomDrawAxisLabel Event

Occurs before axis label items are drawn when the chart's contents are being drawn.

Namespace: DevExpress.XtraCharts.Web

Assembly: DevExpress.XtraCharts.v19.2.Web.dll

Declaration

public event CustomDrawAxisLabelEventHandler CustomDrawAxisLabel
Public Event CustomDrawAxisLabel As CustomDrawAxisLabelEventHandler

Event Data

The CustomDrawAxisLabel event handler receives an argument of the CustomDrawAxisLabelEventArgs type. The following properties provide information specific to this event.

Property Description
Item Provides access to individual axis label items.

Remarks

Use the CustomDrawAxisLabel event, to individually adjust the appearance of axis labels, e.g. based on their axis values.

The CustomDrawAxisLabel event is raised before every AxisLabelItem object is painted. The event parameter's CustomDrawAxisLabelEventArgs.Item property provides an AxisLabelItem object, which represents an individual axis label item. So, for an axis label item obtained in the CustomDrawAxisLabel event, it's possible to obtain its axis value (or internal value, if it's needed), its font and appearance settings, and also access the properties of the associated axis itself.

Note that in order to access settings specific for 3D charts axis labels, the return value of the CustomDrawAxisLabelEventArgs.Item property should be typecast to the corresponding type (AxisLabel3DItem). And, for Radar and Polar charts only the X-axis labels are available, and can be obtained and customized in this event.

For more information, refer to Axis Labels.

See Also