-
Is there any solution to prevent pictures and lines from being cut off at the edges? |
Beta Was this translation helpful? Give feedback.
Answered by
kurkle
Apr 17, 2021
Replies: 1 comment 1 reply
-
Something like this should work: new Chart(id, {
type: 'line'
data: {...},
options: {
clip: 16, // allow this much overflow (half of the image size)
layout: {
padding: 16 // to make sure there is enough room in the canvas
}
}
}); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Rafiki23
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Something like this should work:
padding
clip