score:7

Accepted answer

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

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

score:1

in the option add this parameter

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

score:1

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