javascript - How can I remove the button label my dataset without affecting my chart -


i want eliminate label of operation, when do, affects function.

var ctx = document.getelementbyid("countrychart");<br> var mychart = new chart(ctx, {<br><br>     type: 'bar',<br>     data: {<br>         labels: ["méxico", "japon", "usa", "china", "pakistan"],<br><br>     datasets: [{<br>         label: '# of votes',**--this label want eliminate--**<br>         data: [12, 19, 3, 5, 2, 3],<br>         backgroundcolor: [<br><br> 

add following option: should hide without affecting anything.

 options: { legend: { display: false }} 

Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

python 3.5 - Pyqtgraph string in x tick -