Skip to content
Discussion options

You must be logged in to vote

You have putted your options in the data field but it is supposed to be in the root.

Your config (simplefied):

new Chart('canvasId', {
  type: 'line',
  data: {
    labels: [],
    datasets: [],
    options: {}
  }
})

Correct config (simplefied):

new Chart('canvasId', {
  type: 'line',
  data: {
    labels: [],
    datasets: []
  },
  options: {}
})

Replies: 1 comment 1 reply

Comment options

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

Answer selected by rockiger
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