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

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

Just set the label and tooltip options like so...options: { legend: { display: false }, tooltips: { callbacks: { label: function(tooltipItem) { return tooltipItem.yLabel; } } }}Fiddle -...

View Article


How can I hide dataset labels in Chart.js v2?

I have the following code to create a graph using Chart.js v2.1.3:var ctx = $('#gold_chart');var goldChart = new Chart(ctx, { type: 'line', data: { labels: dates, datasets: [{ label: 'I want to remove...

View Article

Browsing all 22 articles
Browse latest View live


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