Chartjs-Adding prefix or suffix like $ to data labels in plugins in react-chartjs-2

0👍

const option ={
plugins: {
  tooltip: {
    callbacks: {
      label: (item) =>
        `${item.label}: ${item.formattedValue}`,
    },
  },

}
}

Leave a comment