Skip to content

Commit

Permalink
lint(vx-demo/axis)
Browse files Browse the repository at this point in the history
  • Loading branch information
williaster committed Aug 14, 2020
1 parent 277ba90 commit 8a196ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vx-demo/src/sandboxes/vx-axis/Example.tsx
Expand Up @@ -95,7 +95,8 @@ export default function Example({
values: logValues,
tickFormat: (v: number) => {
const asString = `${v}`;
return asString.match(/^[10\]\.?[01]*$/) ? asString : '';
// label only major ticks
return asString.match(/^[.01?[\]]*$/) ? asString : '';
},
label: 'log',
},
Expand Down

0 comments on commit 8a196ef

Please sign in to comment.