Date Time Axis in Chart for WinForms C# Tutorial
Axes can be used to represent the collection of Data Time to sort data time value chronologically in Cartesian Area. There are 2 data time axes supported by Chart, DateTimeCategorical, which is a categorical axis and DateTimeContinuous, which is a numerical one, both of which sort their data chronologically. The following tutorial shows more details about the two data time axes.
Date Time Categorical Axis for Chart
The DateTime categorical axis, which is a categorical axis, sorts the values of Date Time chronologically. By using DateTime categorical axis, developers can define the category of particular date time like year, month, and day. The following are the key properties of the DateTime categorical axis.
In addition, DateTimeCategorical axis is not the default to Cartesian series. As the descendant of Axis, it will inherit all properties of the Axis class. Developers need to create an instance of this property and assign it to the series. The below C# code shows the steps.
DateTimeContinuous Axis for Chart
The DateTimeContinuous axis, which is a numerical axis, sorts the values of Date Time chronologically. The following are the key properties of the DateTime categorical axis.
In addition, DateTimeContinuous axis is not the default to Cartesian series. As the descendant of Axis, it will inherit all properties of the Axis class. Developers need to create an instance of this property and assign it to the series. The below C# code shows the steps.
| ![]() UI Controlsfor Windows Forms .NET WinForms UI Overview.NET WinForms UI Features.NET WinForms UI GuideC# WinForms UI DesignVB.NET WinForms UI DesignWinForms UI Controls WinForms Buttons UI Control WinForms Calendar UI ControlWinForms Carousel UI ControlWinForms Chart UI ControlChart PropertyChart GridChart Series TypesChart Series - AreaChart Series - BarChart Series - LineChart Series - ScatterChart Series - ScatterLineChart Series - PieChart Series - DonutChart Series - PolarChart Series - RadarChart AxesChart Axes - CategoricalChart Axes - DateTimeChart Axes - LinearChart Axes - LogarithmicChart Axes - PolarChart Axes - PlotModeChart Axes - RadicalChart Axes - Multiple AxesChart FeatureChart - Scroll and ZoomChart - SelectionChart - TooltipChart - TrackballChart - TitleChart - LegendChart - Smart LabelsChart - Drill DownChart Data BindingChart Custom PaletteChart Custom RenderingWinForms Clock UI ControlCommandBar UI ControlWinForms Dock UI ControlDesktop Alert UI ControlDropDown List UI ControlWinForms Editor UI ControlForms and Dialogs UI ControlWinForms GridView UI ControlWinForms ListView UI ControlWinForms Menu UI ControlWinForms ComboBox UI ControlWinForms PageView UI ControlPanels and Labels UI ControlWinForms Panorama UI ControlWinForms PDFViewer UI ControlWinForms Property Grid UI ControlWinForms Ribbon UI ControlWinForms PivotGrid UI ControlWinForms RichTextBox UI ControlWinForms Rotator UI ControlWinForms Scheduler UI ControlWinForms Shortcuts UI ControlWinForms SpellChecker UI ControlWinForms Track & Status UI ControlWinForms TreeView UI ControlWinForms Wizard UI ControlWinForms Test UI ControlWinForms Theme UI Control |