Quantcast
Viewing all articles
Browse latest Browse all 22

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

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 22

Trending Articles