Skip to content

The example switches the X-axis between different date-time scale modes and specifies scale-related settings.

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/winforms-charts-use-automatic-date-time-scale-modes-of-an-axis

Repository files navigation

WinForms Chart - Date-Time Axis Scale Modes

This example customizes the appearance and behavior of the date-time axis in a WinForms Chart. It displays a panel with combo boxes that allow you to switch the X-axis between different date-time scale modes and specify related settings.

WinForms Chart - Date-Time Intervals, DevExpress

Implementation Details

The Scale Mode combo box specifies a scale mode for the X-axis:

  • Manual

    In the manual mode, you can configure the following axis settings:

    AxisX.DateTimeScaleOptions.ScaleMode = ScaleMode.Manual;
  • Automatic

    The chart automatically determines date-time scale settings and applies an appropriate aggregation function. In this mode, you can specify the aggregate function.

    AxisX.DateTimeScaleOptions.ScaleMode = ScaleMode.Automatic;
  • Continuous

    Disables axis intervals and data aggregation. You can set the alignment of grid lines and labels to a specific date-time value.

    AxisX.DateTimeScaleOptions.ScaleMode = ScaleMode.Continuous;

Files to Review

Documentation

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)

About

The example switches the X-axis between different date-time scale modes and specifies scale-related settings.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •