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.
Figure 1: Chart without major grid lines and major ticks in primary X axis
JS Playground sample link: Gridlines and ticks