Charts generally have two Axis for measuring and categorizing data: a vertical axis (Y-axis) and a horizontal axis (X-axis). The vertical axis is also known as value axis, and the horizontal axis is also called category axis.
Not all charts depict Axis in the same manner. For instance, Scatter charts and Bubble charts depict numeric values on the vertical axis as well as the horizontal axis to represent discreet or continuous numerical data. A real-time example could be how Internet Usage (Hours per Week) is plotted against different Age Groups. Here, both the items will have numeric values, and data points will be plotted corresponding to their numeric values on X and Y Axis.
Other charts, such as Line, Column, Bar, and Area display numeric values on the vertical axis and categories on the horizontal axis. A real-time example could be how Internet Usage (Hours per Week) is plotted against different regions. Here, regions will be textual categories plotted on the horizontal axis.
However, FlexChart provides great flexibility, thereby allowing you to display numeric values on both X and Y Axis even in case of Bar, Line, and Area charts. Also, FlexChart doesn't require any additional settings to display different types of values.
An axis in FlexChart is represented by the Axis class. You can access the primary Axis of FlexChart by using the AxisX and the AxisY property.
The primary X-axis is rendered horizontally at the bottom, and the primary Y-axis is rendered vertically at the left. You can, however, create exceptions to this rule by customizing the primary Axis and also by using multiple Axis.
While working with FlexChart, you can change the way tick marks and Axis labels appear. You can even lessen the number of Axis labels on X and Y axis by specifying the number of units between values on the Axis. In addition, you can modify the alignment and orientation of the labels and change the format of the numbers to be depicted. You can style the Axis and change their position as per your requirements as well.
The sections, which are mentioned below, explain different customizations and modifications possible with respect to the FlexChart Axis.