title: How Can I display tooltip on legend of chartjs
body: <p>I implemented a chart using chartjs. I added a legend to it which displays first 5 items of the array. I want to add tooltips to this legends on hover. But I could not find a way to do this. I used this:</p>
  <pre><code>legend: {
            onHover: function(e, target){
              let idx = target.text;
              console.log(&quot;legend &quot; + idx);
            },
            labels: {
              usePointStyle: true,
              filter: (legendItem) =&gt; {
                return legendItem.index &lt; 5
              },
            },
  }
  </code></pre>
  <p>onHover function is logging to console but I could not display it as a tooltip. Can you help me please? Thank you.</p>