Skip to content

Instantly share code, notes, and snippets.

@Lunrtick
Created November 7, 2017 11:13
Show Gist options
  • Save Lunrtick/24f401b069f83ad40a707dcd6a5596df to your computer and use it in GitHub Desktop.
Save Lunrtick/24f401b069f83ad40a707dcd6a5596df to your computer and use it in GitHub Desktop.
tooltips: {
callbacks: {
label: function(tooltipItem, data) {
return "$ " + Number(data.datasets[0].data[tooltipItem.index]).toFixed(0).replace(/\B(?=(\d{3})+(?!\d))/g, ",");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment