Skip to content

Commit

Permalink
Implement tick exclusion for x axis
Browse files Browse the repository at this point in the history
  • Loading branch information
robatron committed Apr 7, 2016
1 parent 00acbaa commit 81ac910
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/axis/xaxis.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export default class Xaxis extends Component {
xTickPadding: 3,
xInnerTickSize: 6,
xOuterTickSize: 6,
xTickExclude: [],
...CommonProps
}

Expand All @@ -47,6 +48,7 @@ export default class Xaxis extends Component {
xTickPadding: PropTypes.number,
xTickFormat: PropTypes.func,
xTicks: PropTypes.array,
xTickExclude: PropTypes.array,
style: PropTypes.object
}

Expand All @@ -73,7 +75,8 @@ export default class Xaxis extends Component {
xLabel,
xLabelPosition,
labelOffset,
style
style,
xTickExclude
} = this.props;

var t;
Expand Down Expand Up @@ -127,6 +130,7 @@ export default class Xaxis extends Component {
tickSizeOuter = {xTickSizeOuter}
ticks = {xTicks}
style = {style}
tickExclude = {xTickExclude}
/>
{axisLabel}
</g>
Expand Down

0 comments on commit 81ac910

Please sign in to comment.