Quantcast
Viewing all articles
Browse latest Browse all 22

Answer by potatopeelings for Chart.js v2 hide dataset labels

Just set the label and tooltip options like so

...
options: {
    legend: {
        display: false
    },
    tooltips: {
        callbacks: {
           label: function(tooltipItem) {
                  return tooltipItem.yLabel;
           }
        }
    }
}

Fiddle - http://jsfiddle.net/g19220r6/


Viewing all articles
Browse latest Browse all 22

Trending Articles