Skip to content

How to display the data label together with the value #318

Answered by simonbrunel
whschopke98 asked this question in Q&A
Discussion options

You must be logged in to vote

You would use the formatter option, something like:

options: {
  plugins: {
    datalabels: {
      formatter: (v, ctx) => `${numberInLetters(ctx.dataIndex)} ${v}%`
    }
  }
}

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by whschopke98
Comment options

You must be logged in to vote
2 replies
@simonbrunel
Comment options

@whschopke98
Comment options

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