Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]ASP.NET WebForms Controls
 [Expand]ASP.NET MVC Extensions
 [Expand]Localization
 [Expand]Redistribution and Deployment
  Get More Help
 [Collapse]API Reference
  [Expand]DevExpress.Data.Linq
  [Expand]DevExpress.Web
  [Expand]DevExpress.Web.ASPxGauges
  [Expand]DevExpress.Web.ASPxGauges.Base
  [Expand]DevExpress.Web.ASPxGauges.Scripts
  [Expand]DevExpress.Web.ASPxHtmlEditor
  [Expand]DevExpress.Web.ASPxHtmlEditor.Localization
  [Expand]DevExpress.Web.ASPxHtmlEditor.Scripts
  [Expand]DevExpress.Web.ASPxPivotGrid
  [Expand]DevExpress.Web.ASPxPivotGrid.Data
  [Expand]DevExpress.Web.ASPxPivotGrid.HtmlControls
  [Expand]DevExpress.Web.ASPxPivotGrid.Scripts
  [Expand]DevExpress.Web.ASPxRichEdit
  [Expand]DevExpress.Web.ASPxRichEdit.Localization
  [Expand]DevExpress.Web.ASPxRichEdit.Scripts
  [Expand]DevExpress.Web.ASPxScheduler
  [Expand]DevExpress.Web.ASPxScheduler.Commands.Dialogs
  [Expand]DevExpress.Web.ASPxScheduler.Controls
  [Expand]DevExpress.Web.ASPxScheduler.Dialogs
  [Expand]DevExpress.Web.ASPxScheduler.Drawing
  [Expand]DevExpress.Web.ASPxScheduler.Localization
  [Expand]DevExpress.Web.ASPxScheduler.Reporting
  [Expand]DevExpress.Web.ASPxScheduler.Scripts
  [Expand]DevExpress.Web.ASPxSpellChecker
  [Expand]DevExpress.Web.ASPxSpellChecker.Localization
  [Expand]DevExpress.Web.ASPxSpellChecker.Scripts
  [Expand]DevExpress.Web.ASPxSpreadsheet
  [Expand]DevExpress.Web.ASPxSpreadsheet.Localization
  [Expand]DevExpress.Web.ASPxSpreadsheet.Scripts
  [Expand]DevExpress.Web.ASPxTreeList
  [Expand]DevExpress.Web.ASPxTreeList.Internal
  [Expand]DevExpress.Web.ASPxTreeList.Localization
  [Expand]DevExpress.Web.ASPxTreeList.Scripts
  [Expand]DevExpress.Web.Captcha
  [Expand]DevExpress.Web.Data
  [Expand]DevExpress.Web.Internal
  [Expand]DevExpress.Web.Localization
  [Expand]DevExpress.Web.Mvc
  [Expand]DevExpress.Web.Mvc.BinderSettings
  [Expand]DevExpress.Web.Mvc.Controllers
  [Expand]DevExpress.Web.MVC.Scripts
  [Expand]DevExpress.Web.Mvc.UI
  [Expand]DevExpress.Web.Office
  [Expand]DevExpress.Web.Office.Internal
  [Expand]DevExpress.Web.Rendering
  [Expand]DevExpress.Web.Scripts
  [Collapse]DevExpress.XtraCharts.Web
   [Expand]CallbackStateEventArgs Class
   [Expand]CallbackStateLoadEventArgs Class
    CallbackStateLoadEventHandler Delegate
   [Expand]CallbackStateSaveEventArgs Class
    CallbackStateSaveEventHandler Delegate
   [Expand]ChartClientSideEvents Class
    ChartImagePosition Enumeration
   [Expand]ChartToolTipController Class
   [Expand]CustomCallbackEventArgs Class
    CustomCallbackEventHandler Delegate
    RenderFormat Enumeration
    ToolTipOpenMode Enumeration
   [Collapse]WebChartControl Class
     WebChartControl Members
     WebChartControl Constructor
    [Expand]WebChartControl Properties
    [Collapse]WebChartControl Events
      AxisScaleChanged Event
      AxisVisualRangeChanged Event
      AxisWholeRangeChanged Event
      BoundDataChanged Event
      CallbackStateLoad Event
      CallbackStateSave Event
      CustomCallback Event
      CustomDrawAxisLabel Event
      CustomDrawCrosshair Event
      CustomDrawSeries Event
      CustomDrawSeriesPoint Event
      CustomizeAutoBindingSettings Event
      CustomizeLegend Event
      CustomizeResolveOverlappingMode Event
      CustomizeSimpleDiagramLayout Event
      CustomizeXAxisLabels Event
      CustomJSProperties Event
      CustomPaint Event
      EndLoading Event
      LegendItemChecked Event
      ObjectSelected Event
      PieSeriesPointExploded Event
      PivotChartingCustomizeLegend Event
      PivotChartingCustomizeResolveOverlappingMode Event
      PivotChartingCustomizeXAxisLabels Event
      PivotGridSeriesExcluded Event
      PivotGridSeriesPointsExcluded Event
      SelectedItemsChanged Event
      SmallChartTextShowing Event
    [Expand]WebChartControl Methods
  [Expand]DevExpress.XtraCharts.Web.Designer
  [Expand]DevExpress.XtraCharts.Web.Scripts
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

WebChartControl.CustomizeXAxisLabels Event

Occurs after automatic layout settings are applied to the X-axis' labels.

Namespace:DevExpress.XtraCharts.Web
Assembly:DevExpress.XtraCharts.v17.2.Web.dll

Note: This API is now obsolete. The CustomizeXAxisLabels event is obsolete now. Use the PivotChartingCustomizeXAxisLabels event instead.

Expanded Syntax

Expanded Event Data

The event handler receives an argument of type CustomizeXAxisLabelsEventArgs containing data related to this event.

Expanded Remarks

When a familiar data source (such as the ASPxPivotGrid) is assigned to the chart's ASPxDataWebControlBase.DataSourceID property, and the AutoLayoutSettingsEnabled property is turned on, the DevExpress.XtraCharts.AxisLabel.Staggered property is defined automatically, and cannot be customized at design time.

Handle the CustomizeXAxisLabels event, to manually adjust this option (via the DevExpress.XtraCharts.CustomizeXAxisLabelsEventArgs.Staggered property). To access the X-axis, use the DevExpress.XtraCharts.CustomizeXAxisLabelsEventArgs.Axis property.

Note

The X-axis' labels are staggered, if the axis scale type is Qualitative or DateTime (except for Year). And, the labels' direction is made parallel to that of the axis (e.g. the DevExpress.XtraCharts.AxisLabel.Angle is 0 if the diagram is not rotated, and the DevExpress.XtraCharts.AxisLabel.Angle is 90 when the diagram is rotated). In addition, the labels' text is affected by the measurement unit specified (e.g. Year, Month, or Day), and the superfluous labels are made hidden.

For more information, see Pivot Charting (Integration with a Pivot Grid Control).

Expanded See Also

How would you rate this topic?​​​​​​​