[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Collapse]WPF Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]MVVM Framework
 [Collapse]Controls and Libraries
   Reporting
  [Expand]Data Grid
  [Expand]Ribbon, Bars and Menu
  [Collapse]Charts Suite
   [Collapse]Chart Control
    [Expand]Getting Started
    [Expand]Fundamentals
    [Expand]Providing Data
    [Expand]Chart Elements
    [Expand]Appearance Customization
    [Expand]End-User Features
    [Expand]Design-Time Features
    [Collapse]Examples
     [Expand]2D Chart Types
     [Expand]3D Chart Types
     [Expand]Providing Data
     [Expand]Data Representation
     [Collapse]Chart Elements
       How to: Plot Each XY-Series on a Separate Pane
       How to: Create and Customize Custom Axis Labels
       How to: Configure Resolve Overlapping for Axis Labels
       How to: Display Axis Labels Between Tickmarks
       How to: Show or Hide an Axis in a Multi-Pane Chart
       How to: Obtain Automatically Calculated Axis Property Values
       How to: Use Manual Date-Time Scale Options of an Axis
       How to: Use Manual Numeric Scale Options of an Axis
       How to: Add the Data Source Based Error Bars Indicator to a Chart
       How to: Add the Fixed Value Error Bars Indicator to a Chart
       How to: Add the Percentage Error Bars Indicator to a Chart
       How to: Add the Standard Deviation Error Bars Indicator to a Chart
       How to: Add the Standard Error Bars Indicator to a Chart
       How to: Add an Additional Legend
       How to: Add a Custom Legend Items to a Legend
       How to: Add a Legend Title to a Legend
       How to: Create a Scrollable Legend
       How to: Display Values Instead of Percents in the Legend
       How to: Dock an Annotation to a Chart
       How to: Dock an Annotation to a Pane
       How to: Dock an Annotation to a Series Point
       How to: Assign a Secondary X-axis to a Series
       How to: Assign a Secondary Y-axis to a Series
       How to: Generate a Chart by its ViewModel
     [Expand]Appearance Customization
     [Expand]End-User Interaction
     [Expand]Miscellaneous
    [Expand]Additional Resources
   [Expand]Chart3D Control
  [Expand]Pivot Grid
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Tree List
  [Expand]Gauge Controls
  [Expand]Map Control
  [Expand]Layout Management
  [Expand]Windows Modern UI
  [Expand]Printing-Exporting
  [Expand]Data Editors
  [Expand]Navigation Controls
  [Expand]Spell Checker
  [Expand]Property Grid
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Gantt Control
  [Expand]Diagram Control
  [Expand]Windows and Utility Controls
   Dialogs, Notifications and Panels
  [Expand]Scheduler (legacy)
 [Expand]Scaffolding Wizard
 [Expand]Localization
  Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

How to: Obtain Automatically Calculated Axis Property Values

This example demonstrates how to obtain axis parameters, which are calculated automatically, for example, in ContinuouslDateTimeScale mode.

To do this, handle the ChartControl.AxisScaleChanged event. In the event handler, it is possible to obtain axis parameters using the AxisScaleChangedEventArgs.Axis property. In this example, the property is cast to the ContinuouslDateTimeScale type and its ContinuousDateTimeScaleOptions.GridSpacing and ContinuousDateTimeScaleOptions.GridAlignment properties are used.

Is this topic helpful?​​​​​​​