Skip to content

设置domainMin后显示超过下界 #5460

Answered by pearmini
KuduroJS asked this question in Q&A
Discussion options

You must be logged in to vote

这个是合理的,因为条的下边界的数据是 0。除了上诉方法之外,还可以:

const chart = new Chart({
  clip: true // 隐藏超出绘制区域的地方
})

或者

interval().scale('y', { 
  domainMin: 0.1 
  clamp: true
});

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by hustcc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #5454 on August 24, 2023 07:25.