Articles in this section
Category / Section

How to hide majorGridLines and majorTickLines of an axis?

1 min read

You can use the visible property in majorGridLines and majorTickLines properties of an axis to hide the visibility of major grid lines and major ticks in that axis. This is illustrated in the following code example.

JS

$("#container").ejChart({
    primaryXAxis: {
        majorGridLines: {
            visible: false
        },
        majorTickLines: {
            visible: false
        }
    }
});

The following screenshot displays the Chart without major grid lines and major ticks in primary X axis.

Without without major grid lines and major ticks in X axis

Figure 1: Chart without major grid lines and major ticks in primary X axis

JS Playground sample link: Gridlines and ticks

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