Chartjs-Modifying the X-Axis Labels of a Bar chart in Chart.js 2

0๐Ÿ‘

โœ…

If you are using chart.js 2 then you can use the tooltip callback method documented here like this inside options in order to customize your tooltip

tooltips: {
        callbacks: {
            label: function(tooltipItem, data) {
                //TODO return what you want using value of tooltipItem and data 
            }
        }
    }

Leave a comment