Showing labels on bubble chart in angular-charts

685 views Asked by At

I am using bubble charts in angular-charts (its based on charts.js)

Users have to hover on bubbles to know their labels

How can I either show labels or turn on tooltips permanently in bubble chart

Premraj

1

There are 1 answers

1
Sai On

You need to specify it within the options of Chartjs, specifically the callback part. I've given an example of what that looks like. Chart JS Documentation

    vm.options = {
    "callbacks": {
        "label": function (tooltipItem, data) {
          return data.datasets[tooltipItem.datasetIndex].label;
        }
     }