Articles in this section
Category / Section

How to hide the axis labels in the ASP.NET MVC Chart?

1 min read

Essential Chart supports to hide the axis labels by setting transparent color to the labels using the Font property of the axis. The Font property also supports customizing font family, font weight, font size, and opacity of axis labels. The following code example illustrates this.

CSHTML

        @(Html.EJ().Chart("container")
              .PrimaryXAxis(axis=>
                    axis.Font(font=>
                          font.Color("transparent")))
        )

The above code example displays the Chart without labels in primary X-axis similar to the following screenshot.

After hiding the axis labels in the Chart



Conclusion

I hope you enjoyed learning about how to hide the axis label in Chart.

You can refer to our ASP.NET MVC Chart’s feature tour page to know about its other groundbreaking feature representations. You can also explore our ASP.NET MVC Charts documentation to understand how to present and manipulate data.

For current customers, you can check out our WinForms components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our ASP.NET MVC Chart and other ASP.NET MVC components.

If you have any queries or require clarifications, please let us know in comments below. You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!


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