Created
November 7, 2017 11:13
-
-
Save Lunrtick/24f401b069f83ad40a707dcd6a5596df to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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