Articles in this section
Category / Section

How to hide the axis labels in JavaScript Chart?

3 mins read

jQuery Essential Chart supports to hide the axis labels by setting transparent color to the labels by 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.

JS

$("#container").ejChart({
    primaryXAxis: {
        font: {
            color:"transparent"
        }
    }
});

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

Hiding the axis labels in the Chart in jQuery

Figure: Chart with hidden labels in primary X axis

 

JS Playground sample link: Labels hiding

 

Conclusion

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

You can refer to our jQuerry ejCharts’s feature tour page to know about its other groundbreaking feature representations. You can also explore our jQuery ejCharts example 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 WinForms Diagram and other WinForms 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