XyChartAxis Class
An axis of an XyChart: its title, its values, and how it is drawn (Mermaid x-axis and y-axis, and the xAxis and yAxis configuration).
public sealed class XyChartAxisRemarks
The x axis shows its XyChartAxis.Categories when it has some, the values of its XyChartAxis.Range otherwise, and numbers the values of the first series from 1 when it has neither. The y axis shows the values of its XyChartAxis.Range, or fits the values of the series, from zero when the chart has bars and with round ends; it has no categories.
Constructors
| Name | Description |
|---|---|
| XyChartAxis() |
XyChartAxis()
XyChartAxis.cspublic XyChartAxis()No documentation is available.
Properties
| Name | Description |
|---|---|
| Categories | Gets the categories of the x axis, in order. A category gets the values at its index in the series. |
| LabelColor | Gets or sets the color of the labels of the ticks, or null for the color of the labels of the theme. Charts has one color for the labels of both axes: the color of the x axis, else of the y axis. |
| LabelFontSize | Gets or sets the size of the font of the labels of the ticks. The default is 14. Charts has one size for the labels of both axes: the largest of the two. |
| LabelPadding | Gets or sets the space on each side of the labels of the ticks. The default is 5. It is written back but not drawn. |
| LabelRotation | Gets or sets the rotation of the labels of the ticks of the x axis, in degrees, clockwise, between -90 and 90. The default is 0. Only the labels below a vertical chart rotate. |
| LineColor | Gets or sets the color of the line of the axis, or null for the color of the axes of the theme. See XyChartAxis.TickColor. |
| LineWidth | Gets or sets the width of the line of the axis. The default is 2. It is written back but not drawn: Charts draws a thin line. |
| Range | Gets or sets the values the axis goes through, or null to compute them from the series. |
| ShowLabels | Gets or sets a value that indicates whether the labels of the ticks are drawn. The default is true. The labels of the categories are always drawn: false is written back, but hides only the labels of numbers. |
| ShowLine | Gets or sets a value that indicates whether the line of the axis is drawn. The default is true. |
| ShowTicks | Gets or sets a value that indicates whether the ticks are drawn. The default is true. |
| ShowTitle | Gets or sets a value that indicates whether the title is drawn. The default is true. |
| TickColor | Gets or sets the color of the ticks, or null for the color of the axes of the theme. Charts has one color for the lines and the ticks of both axes: the first color set among the XyChartAxis.LineColor of the x axis, of the y axis, then the XyChartAxis.TickColor of the x axis, of the y axis. |
| TickLength | Gets or sets the length of the ticks. The default is 5. |
| TickWidth | Gets or sets the width of the ticks. The default is 2. It is written back but not drawn: Charts draws thin ticks. |
| Title | Gets or sets the title of the axis, or null for none. |
| TitleColor | Gets or sets the color of the title, or null for the color of the texts of the theme. See XyChart.TitleColor. |
| TitleFontSize | Gets or sets the size of the font of the title. The default is 16. See XyChart.LegendFontSize. |
| TitlePadding | Gets or sets the space on each side of the title. The default is 5. It is written back but not drawn. |
Categories
XyChartAxis.csGets the categories of the x axis, in order. A category gets the values at its index in the series.
Property value
LabelColor
XyChartAxis.csGets or sets the color of the labels of the ticks, or null for the color of the labels of the theme. Charts has one color for the labels of both axes: the color of the x axis, else of the y axis.
public SceneColor? LabelColor { get; set; }Property value
LabelFontSize
XyChartAxis.csLabelPadding
XyChartAxis.csLabelRotation
XyChartAxis.csLineColor
XyChartAxis.csGets or sets the color of the line of the axis, or null for the color of the axes of the theme. See XyChartAxis.TickColor.
public SceneColor? LineColor { get; set; }Property value
LineWidth
XyChartAxis.csRange
XyChartAxis.csGets or sets the values the axis goes through, or null to compute them from the series.
public XyChartAxisRange? Range { get; set; }Property value
ShowLabels
XyChartAxis.csShowLine
XyChartAxis.csShowTicks
XyChartAxis.csShowTitle
XyChartAxis.csTickColor
XyChartAxis.csGets or sets the color of the ticks, or null for the color of the axes of the theme. Charts has one color for the lines and the ticks of both axes: the first color set among the XyChartAxis.LineColor of the x axis, of the y axis, then the XyChartAxis.TickColor of the x axis, of the y axis.
public SceneColor? TickColor { get; set; }Property value
TickLength
XyChartAxis.csTickWidth
XyChartAxis.csTitle
XyChartAxis.csTitleColor
XyChartAxis.csGets or sets the color of the title, or null for the color of the texts of the theme. See XyChart.TitleColor.
public SceneColor? TitleColor { get; set; }Property value
TitleFontSize
XyChartAxis.csGets or sets the size of the font of the title. The default is 16. See XyChart.LegendFontSize.
public double TitleFontSize { get; set; }