Skip to content

Commit

Permalink
fix: 修改tickCount计算bug
Browse files Browse the repository at this point in the history
  • Loading branch information
El-Chiang committed Oct 19, 2021
1 parent aad7079 commit a1e5bbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/f2-next/src/controller/scale/cat-tick.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default cfg => {
}

// 获取间隔步长, 最小是1
const step = Math.round(values.length / (tickCount - 1)) || 1;
const step = Math.floor(values.length / (tickCount - 1)) || 1;
const ticks = [];

// 按间隔数取对应节点
Expand Down

0 comments on commit a1e5bbe

Please sign in to comment.