Accepted answer

instead of drawing on the canvas, i simply add a label around the element

<label for = "idofcanvas">
your label<br />


in the option add this parameter

    multitooltiptemplate: "<%= datasetlabel %> - <%= value %>"


you'd need to add the title with specifics in your options section and ensure display is set to true. something like so:

options: {
    title: {
        display: true,
        text: 'name of your line chart'

here's a link to the chartjs documentation

Related Query

More Query from same tag