- 3 minutes to read
The Y-axis is the numerical axis of values.
To access Y-axis settings, use the Y-Axis Settings button in the Diagram section of the Design Ribbon tab of the Chart Tools contextual tab set.
This will invoke the Y-Axis Settings dialog.
Use the combo box at the top to select the pane for the Y-axis settings you need to edit.
The Common tab contains the following settings.
Always show zero level
Specifies whether the axis’ zero level is visible. If this option is unchecked, the visible axis range is defined based on the values plotted in the chart.
Allows you to reverse the Y-axis. If the Y-axis is reversed, its values are ordered from top to down.
Show grid lines
Allows you to hide and show grid lines for the Y-axis.
Allows you to hide and show the Y-axis.
Allows you to hide and show the Y-axis title. You can choose whether to use the default text or specify a custom string.
Specifies whether the axis should display its numerical values using a logarithmic scale. The combo box next to this option allows you to select the logarithmic base from one of the predefined values.
Gets or sets whether the zero level of the Y-axis should always be visible.
Gets or sets whether the axis should display its numerical values using a logarithmic scale.
Gets or sets a value specifying a logarithmic base when the ChartAxisY.Logarithmic property is enabled.
Gets or sets whether the axis is reversed.
Gets or sets whether to show grid lines for a Y-axis.
Gets or sets whether the chart’s axis is visible.
Gets or sets whether the title of the chart’s axis is visible.
Gets or sets the title of the chart’s axis.
The tab contains the following settings.
Specifies format types for numeric values. Available types are listed in the DataItemNumericFormatType enumeration.
Specifies the unit to convert the numeric values. Available types are listed in the DataItemNumericUnit enumeration.
Specifies the number of fractional digits to display.
Specifies the currency symbol and format provided by the RegionInfo class.
Specifies the name of a culture that defines the currency symbol and format.
Include group separator
Specifies whether separators should be inserted between digit groups.
The secondary Y-axis is useful when it is necessary to visually combine several charts into one. Secondary axes provide the ability to plot series with different ranges on the same chart.
To plot the required series using the secondary axis, enable the Plot on secondary axis option in the Series Options dialog.
In code, use the ChartSeries.PlotOnSecondaryAxis property.
Note that the Y-Axis Settings dialog allows you to specify settings for primary and secondary axes separately.