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

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

$
0
0

As of 2021, the namespace has changed from options.legend to options.plugins.legend. This simple code worked for me -

options: {  plugins: {    legend: {      display: false    }  }}

Documentation reference


Viewing all articles
Browse latest Browse all 23

Trending Articles



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