Articles in this section
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.

Customized the range of Chart axis

Figure 1: Chart with customized range in primary X axis

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied