Skip to content

迷你面积图会超出设置的大小 #6066

Answered by hustcc
YY88Xu asked this question in Q&A
Discussion options

You must be logged in to vote

直接 new Chart 的时候设置:

const chart = new Chart({
  container: 'container',
  width: 207,
  height: 40,
  padding: 4, // 👈🏻这里
  margin: 0,
});

相关的讨论可以都放到一起。 #6056

Replies: 1 comment

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
2 participants
Converted from issue

This discussion was converted from issue #6064 on January 26, 2024 13:00.