Chartjs-Chart js scatter – display label on hover

1👍

There is no need to use click event handler for your chart.

To display a label on tooltip, you would have to define the label property for you dataset, like so …

var data = {
   datasets: [{
      label: 'Ben Mayo',  //<-- define this
      backgroundColor: "#566573",
      { { scatterData | safe } }
   }],
   { { labelsData | safe } }
};

note: labels array are not applicable for bubble chart.

-1👍

I think you better to use angular-chart js. they have few examples there
http://jtblin.github.io/angular-chart.js/

Leave a comment