Chartjs-How to show symbols after the label and before the numeric value using chart.js Bar chart in Angular

1👍

You will need to use the normal label callback.

Method should look something like this (on mobile so can’t test it out so doing this from the top of my head):

callbacks: {
  label: (ttItem, data) => {
    return `${data.datasets[ttItem.datasetIndex].label}: £${ttItem.yLabel}`
  }
}

0👍

callbacks: {                            
                        label: (item, data) => {
                            return `${data.datasets[item.datasetIndex].label}: $ ${item.value} (YourText)`;
                      }

I think you need this please have a try.

Leave a comment