Skip to content

Cuted pointStyle when they are as pictures #8925

Answered by kurkle
Rafiki23 asked this question in Q&A
Discussion options

You must be logged in to vote

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
    }
  }
});

padding
clip

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Rafiki23
Comment options

Answer selected by Rafiki23
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 #8924 on April 17, 2021 09:49.