Skip to content

Commit 81ac910

Browse files
committed
Implement tick exclusion for x axis
1 parent 00acbaa commit 81ac910

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/axis/xaxis.jsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export default class Xaxis extends Component {
2525
xTickPadding: 3,
2626
xInnerTickSize: 6,
2727
xOuterTickSize: 6,
28+
xTickExclude: [],
2829
...CommonProps
2930
}
3031

@@ -47,6 +48,7 @@ export default class Xaxis extends Component {
4748
xTickPadding: PropTypes.number,
4849
xTickFormat: PropTypes.func,
4950
xTicks: PropTypes.array,
51+
xTickExclude: PropTypes.array,
5052
style: PropTypes.object
5153
}
5254

@@ -73,7 +75,8 @@ export default class Xaxis extends Component {
7375
xLabel,
7476
xLabelPosition,
7577
labelOffset,
76-
style
78+
style,
79+
xTickExclude
7780
} = this.props;
7881

7982
var t;
@@ -127,6 +130,7 @@ export default class Xaxis extends Component {
127130
tickSizeOuter = {xTickSizeOuter}
128131
ticks = {xTicks}
129132
style = {style}
133+
tickExclude = {xTickExclude}
130134
/>
131135
{axisLabel}
132136
</g>

0 commit comments

Comments
 (0)