Quantcast
Channel: How can I hide dataset labels in Chart.js v2? - Stack Overflow
Viewing all articles
Browse latest Browse all 22

Answer by potatopeelings for How can I hide dataset labels in Chart.js v2?

$
0
0

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



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>