Chartjs-ChartJS: how to change data in hover box?

0👍

You want to set/override the tooltips option when generating the graph. I’ve slightly edited some coffee script code I use in a project to give you an idea of how to achieve this

  tooltips:
      mode: 'label'
      callbacks:
        title: (tooltipItem, data) ->
          return [your date conversion function here]
        label: (tooltipItem, data) ->
          return data

Leave a comment