Axis Customization in ASP.NET MVC Chart Component
18 Nov 20181 minute to read
Axis Crossing
An axis can be positioned in the chart area using CrossesAt and CrossesInAxis properties. The CrossesAt property specifies the values (datetime, numeric, or logarithmic) at which the axis line has to be intersected with the vertical axis or vice-versa, and the CrossesInAxis property specifies the axis name with which the axis line has to be crossed.
Title
You can add a title to the axis using Title property to provide quick information to the user about the data plotted in the axis.
Title Rotation
By using the titleRotation property, you can rotate the axis title from 0 to 360 degree.
Tick Lines Customization
You can customize the Width, Color and Size of the minor and major tick lines, using MajorTickLines and MinorTickLines properties in the axis.
Grid Lines Customization
You can customize the Width, Color and DashArray of the minor and major grid lines, using MajorGridLines and MinorGridLines properties in the axis.
Multiple Axis
In addition to primary X and Y axis, we can add n number of axis to the chart. Series can be associated with this axis, by mapping with axis’s unique name.
Inversed Axis
When an axis is inversed, highest value of the axis comes closer to origin and vice versa. To place an axis in inversed manner set this property IsInversed to true.
Opposed Position
To place an axis opposite from its original position, set OpposedPosition property of the axis to true.