Skip to content

Bar Chart Remove Label? #11123

Answered by LeeLenaleee
trymeouteh asked this question in Q&A
Discussion options

You must be logged in to vote

Seems you are referring to the legend. This can be disabled with the following config:

new Chart(ctx, {
  type: 'bar',
  data:  data,
  options: {
    plugins: {
      legend: false
    }
  }
})

Replies: 2 comments 1 reply

Comment options

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

Comment options

You must be logged in to vote
0 replies
Answer selected by trymeouteh
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