Category / Section
How to customize the range of Chart axis in ASP.NET MVC Charts?
1 min read
Essential Chart supports customizing the range of an axis by using Range property of axis. This property has options to set the minimum, maximum and interval values of axis by using Min, Max and Interval properties. The following code example illustrates the same.
CSHTML
@(Html.EJ().Chart("container") .PrimaryXAxis(axis=>axis.Range(range=>range.Min(0).Max(11).Interval(2))) )
The following screenshot displays the Chart with customized range in primary X axis.
Figure 1: Chart with customized range in primary X axis