Arseniy-II
Arseniy-II

Reputation: 9167

Chartist: remove all grid lines but display axis

I know there is an option to remove gridlines: showGrid: false. But that will remove all grid lines including main axes.

Is there a way to remove all gridlines except main axis like this? enter image description here

Upvotes: 2

Views: 947

Answers (1)

Arseniy-II
Arseniy-II

Reputation: 9167

It is possible to achieve that with pure css:

.ct-vertical ~ .ct-vertical {
    stroke: none;
}
.ct-horizontal ~ .ct-horizontal {
    stroke: none;
}

Upvotes: 7

Related Questions