Quantcast
Viewing all articles
Browse latest Browse all 22

Answer by Muhammad Zakariya for Chart.js v2 hide dataset labels

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

data{...},options: {  plugins: {    legend: {      display: false    }  }}

Viewing all articles
Browse latest Browse all 22

Trending Articles