Axis Appearance and Position
- 2 minutes to read
This document briefly describes how to rotate an axis, and how to change the color, thickness and alignment of an axis. Before reading this text, it may be useful to review the basics of using axes in XtraCharts.
The overall appearance of a chart is determined by it's the following properties: ChartControl.AppearanceName, ChartControl.PaletteName and ChartControl.PaletteBaseColorNumber. They affect the chart's complete appearance, including its diagram, legend and, in particular, axes.
To reverse an axis (along with series which are associated with it), use the Axis.Reverse property.
To position an axis within a chart's diagram, use the Axis2D.Alignment property. For all types of axes (primary and secondary), you can define the Near and Far alignment. For the primary axes, there is a special option (Zero), which places the axis exactly where the zero level of another primary axis is.
The following images demonstrate the possible alignment of axes.
The property value The resulting image Axis2D.Alignment = Near Axis2D.Alignment = Far Axis2D.Alignment = Zero
- To show or hide an axis, use the Axis2D.Visibility property. And, to control its visibility in panes, use the Axis2D.VisibilityInPanes property.