Skip to content

Commit

Permalink
fix: keep labels on the edges for custom domain
Browse files Browse the repository at this point in the history
  • Loading branch information
Fei committed Jul 21, 2020
1 parent fa96d12 commit 9ad9046
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/components/axes/axis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ export class Axis extends Component {

// Remove labels on the edges
// If there are more than 2 labels to show
if (addSpaceOnEdges && tickValues.length > 2) {
if (addSpaceOnEdges && tickValues.length > 2 && !customDomain) {
tickValues.splice(tickValues.length - 1, 1);
tickValues.splice(0, 1);
}
Expand Down

0 comments on commit 9ad9046

Please sign in to comment.